在Visual Studio 2017中加载我的.NET Frameowrk 4.6.2解决方案时,它给出了以下警告:
Severity Code Description Project File Line Suppression State
Warning Your project is not referencing the ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "frameworks" section of your project.json, and then re-run NuGet restore.
另:
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. BigData 1 Active
但是,使用完全相同的解决方案文件和结构,在visual studio 2015中加载完全没问题。
为什么这样以及我如何解决它?
顺便说一下,根据我的阅读,在最新的更新中,project.json被合并回.csproj,为什么在这里仍然会在project.json上推荐一些东西答案 0 :(得分:51)
在将解决方案从vs2015迁移到2017年之后不久建立时,我将此显示为错误,然后还进行了一些git重组。事实证明,我认为git实际上是罪魁祸首。
无论如何,手动删除bin
&受影响项目中的obj
个文件夹为我解决了这个问题。 (单独清洁并没有削减它。)
答案 1 :(得分:0)
您确定,您为项目安装了所有需要的软件包吗?它可能是一个未安装的功能。进入启动器进行修改和检查,是否安装了所有依赖项?