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

.NET Core sln template has issues referencing some assemblies #508

Open
rockfordlhotka opened this Issue Apr 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@rockfordlhotka

rockfordlhotka commented Apr 7, 2018

The .NET Core hosted template has an issue where it can't reference some assemblies or NuGet packages.

Suppose you have a component that has the same assembly name (like x.dll) but is built once for wasm and once for .NET Core - so there are two assemblies named x.dll but they are different builds of the same code.

(This scenario might seem odd - but it isn't uncommon, especially with something like Blazor where the mono runtime on the client is not the same as the netcore runtime on the server. The solution is to have a codebase that is "the same" except with compiler directives to fix the differences between platforms. Yes, netstandard should fix this, but is not a perfect solution.)

Right now, if you reference the mono-built x.dll in the Blazor app, and the netcore-built x.dll in the server app, the server app will fail to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment