无法加载文件或程序集Microsoft.Win32.Primitives,版本= 4.0.0.0 [英] Could not load file or assembly Microsoft.Win32.Primitives, Version=4.0.0.0
问题描述
我在运行Web应用程序时遇到问题。
I am having problems running my web application.
项目设置为ASP.NET Core Web应用程序(.NET Framework)。我似乎没有任何构建错误。该项目不仅会运行。
The project setup is ASP.NET Core web application (.NET Framework). I don't seem to get any Build error. The project doesn't just run.
System.IO.FileLoadException:'无法加载文件或程序集'Microsoft.Win32.Primitives,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。找到的程序集的清单定义与程序集引用不匹配。 (来自HRESULT的异常:0x80131040)'
System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.Win32.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
推荐答案
尝试添加 System.Net.Http
nuget程序包。
Try adding the System.Net.Http
nuget package.
这篇关于无法加载文件或程序集Microsoft.Win32.Primitives,版本= 4.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!