所以我已经安装了VS2019社区版,我也安装了
- .NET 3.0 SDK 32 和 64 位版本
- .NET 3.0 运行时 32 和 64 位版本
但是当我尝试在 VS2019 中创建新项目时,我在磁盘上创建的文件/项目正常,但解决方案资源管理器根本无法将其识别为项目
我尝试卸载很多次,就是这样一次又一次的发生
有人有什么建议吗?
最佳答案
好吧,由于运气不好,我卸载了 .NET Core 3.0 运行时/SDK,并尝试创建一个较旧的项目(使用 .NET Framework 4.7.2 的 WPF)并看到此错误出现
无法在 Visual Studio 2019 中打开任何项目:无法识别工具版本“15.0”
这让我可以用谷歌搜索,并引导我到这个页面https://developercommunity.visualstudio.com/content/problem/515088/cannot-open-any-project-in-visual-studio-2019-the.html
其中又包含此信息
This happens because you have older versions of msbuild assemblies in the GAC which gets loaded when trying to use a newer version of VS (2019). We don’t support this mixed mode development.
Run the following commands from an elevated Visual Studio Developer Command prompt:
gacutil /u “MSBuild, Version=15.1.0.0”
gacutil /u “Microsoft.Build.Conversion.Core, Version=15.1.0.0”
gacutil /u “Microsoft.Build, Version=15.1.0.0”
gacutil /u “Microsoft.Build.Engine, Version=15.1.0.0”
gacutil /u “Microsoft.Build.Tasks.Core, Version=15.1.0.0”
gacutil /u “Microsoft.Build.Utilities.Core, Version=15.1.0.0”
gacutil /u “Microsoft.Build.Framework, Version=15.1.0.0”
完成此操作后,我能够重新安装 .NET Core 3.0 运行时/SDK,一切正常
关于visual-studio - VS2019不会在解决方案资源管理器中显示项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57362569/