无法找到程序集“System.Net.Http.Formatting,Version = 4.0.0.0 ....”

时间:2016-10-06 09:58:07

标签: .net visual-studio visual-studio-2015

Visual Studio 2015社区版

我们在TFS上有一个共享项目。每个人都可以毫无问题地加载项目。就我而言,一个特定的引用System.Net.Http.Formatting有一个黄色三角形和一个感叹号。 “属性中的路径”显示为空白。我的其他同事将它作为C:\ Program Files(x86)\ Microsoft ASP.NET \ ASP.NET MVC 4 \ Assemblies \ System.Net.Http.Formatting.dll。

我检查了我的电脑,它有一个同名的文件,但扩展名为.xml在同一个文件夹中。没有dll文件。为什么我的项目没有正确加载?此参考的配置位于何处?如何手动更新?

在回复第一条评论时添加:

.csproj文件在< ItemGroup>中包含以下行。块:

  

< Reference Include =“System.Net.Http.Formatting,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35,processorArchitecture = MSIL”/>

根据注册表,我在Windows 10周年更新中有.NET Framework 4.6.2:

enter image description here

如何在正确的位置正确安装System.Net.Http.Formatting.dll文件?

0 个答案:

没有答案
相关问题