【发布时间】:2017-04-05 18:16:43
【问题描述】:
在 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 上推荐一些东西
【问题讨论】:
-
听起来像是一个 .NETCore 项目,在 VS2017 中此类项目的完成方式发生了相当大的变化。重新创建项目将是避免依赖项目转换器的简单方法。顺便说一句,我们不必猜测。