✅ Which dll do I need to load for Microsoft.AspNetCore.Builder WebApplication Class to be loaded?
Hi, I'm trying to get the .NET framework loaded without relying on Nuget.
Which
dll
do I need to load using Assembly.Load
in order for Microsoft.AspNetCore.Builder WebApplication
to be available?
I tried all dll's under /usr/lib/dotnet/shared/Microsoft.AspNetCore.App/6.0.13/
without any success.
Microsoft.AspNetCore.Builder WebApplicationBuilder is found though 25 Replies
For anyone interested, the reason why I'm not using nuget is because I'm using C# and .NET 6 from https://github.com/clojure/clojure-clr (clojure-clr, a functional programming language that runs on the clr. The tooling is a bit meh but we can fix that!)
I think you need to load all packages from a metapackage
you won't be able to fix the tooling for a general case
all of .net ecosystem is tied to msbuild, to replicate that you'll need to replicate msbuild
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm not using Nuget
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I expected the class to be available if I loaded everything from
/usr/lib/dotnet/shared/Microsoft.AspNetCore.App/6.0.13/
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you're not wrong, but it probably loads a dozen more besides that one
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ahh it's under /sdks
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Sounds to me like it would be easier to make clojure-clr compatible with msbuild than to build some own tooling
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
😄
It's xml at least, it can be parsed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
msbuild is open source right?
yes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Well, yeah the dll I need to load must be somewhere in /usr/share/dotnet/sdk/6.0.405/. Ur screenshots are helpful (I need to install Rider of Visual Studio for this digging :D)
I've loaded all dll's under /usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.13/ and it still can't be found, hmm.
I was guessing that the above manifests were looking there.
Current status, loaded all dll's under:
/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.13/
Microsoft.AspNetCore.Builder WebApplication can still not load.
Microsoft.AspNetCore.Builder WebApplicationBuilder works fine
According to
packs/Microsoft.AspNetCore.App.Ref/6.0.13/ref/net6.0/Microsoft.AspNetCore.xm
l the Microsoft.AspNetCore.dll
should contain that the Microsoft.AspNetCore.Builder WebApplication
classWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.@TeBeConsulting I resolved the issue. The issue all along was that I was calling:
Assembly.LoadFile instead of Assembly.LoadFrom