VS2017 中的警告但 VS2015 一切正常

Warnings in VS2017 but all fine with VS2015

在 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

上的内容

您确定您安装了项目所需的所有包吗?它可能是未安装的功能。进入启动器修改查看,是否安装了所有依赖项?

在将解决方案从 vs2015 迁移到 2017 后不久构建时,我将此显示为错误,然后还进行了一些 git 重组。事实证明,我认为 git 实际上是罪魁祸首。

无论如何,手动 删除受影响项目中的 binobj 文件夹为我解决了这个问题。 (单靠清洁是不够的。)