Visual Studio 项目中的每个引用都显示为无效

Every reference in Visual Studio Project is showing as invalid

我有一个非常奇怪的问题,我打开了一个已知可以工作的 Visual Studio 2010 项目,但它不再构建并且每个引用都显示为无效,如下面的屏幕截图所示。

我不知道为什么或该做什么。

我已经安装了 Visual Studio 2013 Express,所以我不确定这是否可能在某处搞砸了,但作为测试,该项目在 2010 年开放,我看到了这个问题。

在 VS 的错误选项卡中显示以下错误:

Error 1 This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ....\ServerAdministrator\packages\System.Data.SQLite.Core.1.0.94.0\build\net40\System.Data.SQLite.Core.targets. C:\Users\Chris\Documents\Visual Studio 2013\Projects\BoardiesITSolutionsLib\BoardiesITSolutions\BoardiesITSolutions.csproj 131 5 BoardiesITSolutions

它提到的 ServerAdministrator 程序是一个完全不同的项目,我尝试删除对 System.Data.SqliteCore 的引用并尝试告诉 NuGet 重新添加它们,但没有成功。

警告是:

The Referenced component 'WindowsBase' could not be found The Referenced component `System.Xml.Linq' could not be found

对于屏幕截图中显示的每个参考,所有警告都与上面相同。

应要求,我的评论作为回答:


如果您在文本编辑器中查看 .csproj 项目文件(实际上只是 XML),这些引用有意义吗?

您是否安装了该版本的 .NET 框架?

通常,与 IDE 相比,原始项目文件会让您更详细地了解正在发生的事情。