Visual Studio 2015警告System.Runtime未找到(但VS2013很好)

时间:2015-07-24 09:44:13

标签: visual-studio-2015

在Visual Studio 2015中,我打开了一个使用Visual Studio 2013创建的项目。重建此项目并看到以下警告:

The referenced component 'System.Runtime' could not be found.

查看Solution Explorer中的References项,单击System.Runtime,Property窗口显示为空,如下所示:

enter image description here

在Visual Studio 2013中,它显示:

enter image description here

这个DLL确实存在于foler中: C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5 \ Facades

因此,Visual Studio 2013在构建项目时没有发出警告,但Visual Studio 2015确实如此。

这是一个错误还是我在Visual Studio 2015中遗漏了什么?

1 个答案:

答案 0 :(得分:1)

包括System.Runtime.InteropServices.RuntimeInformation而不是System.Runtime。它对我有用。

相关问题