【发布时间】:2018-06-26 05:40:44
【问题描述】:
我有一个需要 .NET 引用才能工作的类库,因为它使用了很多 System API,但我无法从 Add References 对话框中添加引用。 .NET 引用在 Reference Manager 中的 Assemblies 下不可用。
这是我的项目的样子,我在构建这个项目时收到以下错误:
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
以下是我的参考经理的截图
我想要.NET 参考,如下图所示。知道如何解决这个问题吗?在此先感谢:)
【问题讨论】:
-
参考什么?
-
.NET参考 -
需要截图吗?
-
您能否具体说明您遇到问题的具体参考资料?
-
什么是“.NET 参考”? .NET 类库应该有必要的系统和类似的引用,你不要添加对“.NET”的引用。您能具体说明您要添加的内容吗?另外,您为什么需要添加任何内容,显示无法编译的代码并告诉我们您尝试添加什么来解决这个问题。
标签: c# asp.net asp.net-mvc-4 asp.net-web-api visual-studio-2017