Skip to content
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

WPF app cannot be built in VS2019RC+Net Core 3 Preview 4 #408

Closed
pavelovcharov opened this issue Mar 6, 2019 · 7 comments
Closed

WPF app cannot be built in VS2019RC+Net Core 3 Preview 4 #408

pavelovcharov opened this issue Mar 6, 2019 · 7 comments
Assignees
Labels
Bug Product bug (most likely)
Milestone

Comments

@pavelovcharov
Copy link

  • .NET Core Version: 3.0.100-preview4-010591

  • 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
@stevenbrix stevenbrix added the Bug Product bug (most likely) label Mar 6, 2019
@stevenbrix
Copy link
Contributor

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?

@stevenbrix stevenbrix added this to the 3.0 milestone Mar 6, 2019
@pavelovcharov
Copy link
Author

Yes, I'm using command line for now, it is not as comfortable as Visual Studio though

@KexyBiscuit
Copy link
Contributor

This has been annoying. Since dotnet/msbuild#3986, I can't build my project from CLI.

@nguerrera nguerrera self-assigned this Mar 7, 2019
@nguerrera
Copy link

I have a fix for this in PR.

@stevenbrix
Copy link
Contributor

This is awesome, thanks @nguerrera!

@ryalanms
Copy link
Member

ryalanms commented Mar 7, 2019

Thanks, Nick.

@nguerrera
Copy link

This is now fixed as of .NET Core SDK 3.0.100-preview4-010654

@ghost ghost locked as resolved and limited conversation to collaborators Apr 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Product bug (most likely)
Projects
None yet
Development

No branches or pull requests

5 participants