Windows version: 1809 (17763.316)
Does the bug reproduce also in WPF for .NET Framework 4.8?: No
Problem description:
If an application contains XAML-files a build error occurs:
1>C:\Program Files\dotnet\sdk\3.0.100-preview4-010591\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets(243,9): error MC1000: Unknown build error, 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'
Actual behavior:
Build error occurs
Expected behavior:
No build errors
Minimal repro:
1) Create a new WPF application
2) Try to build it
Thanks for filing this issue. I'm able to reproduce this inside VS as well, but noticed that building from the cli via dotnet build works fine. Are you able to use that in the meantime while we figure this out?
Yes, I'm using command line for now, it is not as comfortable as Visual Studio though
This has been annoying. Since Microsoft/msbuild#3986, I can't build my project from CLI.
I have a fix for this in PR.
This is awesome, thanks @nguerrera!
Thanks, Nick.
This is now fixed as of .NET Core SDK 3.0.100-preview4-010654
Most helpful comment
This is now fixed as of .NET Core SDK 3.0.100-preview4-010654