-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running MusicStore sample on NET461 fails with an exception #21328
Comments
I haven't looked at the repro very closely, but the fact that System.Runtime.Loader is trying to load jumps out at me. That is a .NET Core-only assembly; it cannot work on .NET Framework. The way MusicStore is being built might be broken in some way if it's producing a .NET Framework application that depends on System.Runtime.Loader. |
@weshaggard please find the right home thx. |
@kichalla System.Runtime.Loader is not supported on desktop so if there is code that uses it that needs to be changed to not consume when on desktop. |
Thanks @weshaggard |
@weshaggard - the API is available in |
I suspect this is another manifestation of https://github.com/dotnet/corefx/issues/19058. |
See https://github.com/dotnet/corefx/issues/11023 where this was discussed in the past. This is a case where we had a netstandard set of APIs but not all platforms supported an implementation for it. For this library we are no longer shipping it as an individual nuget package any longer and it will only ship in Microsoft.NETCore.App going forward so folks won't be able to consume it for a desktop application. |
@weshaggard you realize that everyone that uses System.Runtime.Loader is broken right? For some reason, it was originally made to support .NET Standard 1.5 instead of netcoreapp1.0 (which is what it should have been the whole time). Can we update that package or is it pretty much dead at this point? |
That package is essentially dead once we ship 2.0. We could consider shipping an update of it to force the breaking change but I think our guidance will be to stop using it as opposed to updating it. |
@weshaggard why is System.Runtime.Loader essentially dead in 2.0, does something replace it? |
It's not dead, or at least it shouldn't be. It should just be .NET Core specific.
The older Assembly.Load* APIs are back in netstandard 2.0. |
Ok, good, thanks for clearing that up |
What @davidfowl said. The library isn't dead it is just .NET Core specific, what is dead is the individual library nuget package for it because it ships in the .NET Core 2.0 platform. |
Repro:
kichalla/net461
samples/MusicStore
samples\MusicStore\bin\Debug\net461\MusicStore.exe
Expected:
Application starts successfully and you can make a request successfully to
http://localhost:5000/
to see the home page.Actual:
Application fails to start with an exception
A pull request where discussion about this has been going on:
aspnet/MusicStore#775
cc @Eilon @pranavkm
The text was updated successfully, but these errors were encountered: