-
Notifications
You must be signed in to change notification settings - Fork 224
Cannot find reference assembly 'Microsoft.Win32.Primitives.dll' after set RazorCompileOnBuild=false #2663
Comments
Hi. It looks like this is a question about how to use ASP.NET Core. While we do our best to look through all the issues filed here, to get a faster response we suggest posting your questions to StackOverflow using the asp.net-core-mvc tag. |
@sergei66666, just a generic advice: try to either repair VS installation on the B machine or just reinstall the 2.1.5 SDK on that machine. It may be your setup somehow got messed up. |
@pranavkm, do you have any suggestions regarding the razor compilation aspects here? Thanks! |
Setting |
@pranavkm We did not check what happen on publish, but during debug this flag did not work (no So, for now we went back to net461 and all works fine. We get Interesting thing. While using net472 on machine A - we didn't have |
The Regardless, this looks like a dup of dotnet/sdk#1738. The fix was made in the SDK v2.1.4 or newer. Could you verify both the machines have the right Sdk installed? |
Both have |
@sergei66666 was the issue resolved for you? |
@pranavkm Yes, after rolling back to net461. |
At first we used .net Core 1.1.2 with
<TargetFramework>net461</TargetFramework>
.Now we migrated to .net Core 2.1.5 with
<TargetFramework>net472</TargetFramework>
.We have two developer machines (machine A and machine B), both with VS 2017 15.8.7 and installed net472, with the same dotnet --info output:
We have problem with views precompilation (I think).
First case. Use this settings
All works correctly while debug on both machines (IIS local). If we made any changes to *.cshtml during debug - all works fine on machine A (views recompiled), but on B we get exception:
Second case
At machine A all works, on B we get the same exception, but at the startup.
We try:
Also we try to get exception on machine A but without results - all works fine.
Please, help us find diference between machine A and B, what can be cause of this behavior?
full stack here.txt
The text was updated successfully, but these errors were encountered: