Strange diagnostics errors, prefedined type System… is not defined or imported

寵の児 提交于 2019-12-01 12:04:18

So this finally solved it:

  1. Added the microsoft.build redirects as suggested by @GeorgeAlexandria http://github.com/Microsoft/msbuild/issues/2369#issuecomment-353674937

  2. Cleared the Microsoft.Build.* from the output bin folder

  3. Added the Microsoft.Build.Locator as a reference

  4. Added the line MSBuildLocator.RegisterDefaults() above the workspace code.

Source: https://github.com/dotnet/roslyn/issues/26029#issuecomment-380164421

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!