其中一台开发机器会出现此错误2> C:\ WINDOWS \ Microsoftoft.NET \ Framework \v4.0.30319 \ Microsoft.WinFx.targets(268,9):错误MC1000:未知的生成错误,'无法生成加载文件或程序集'file:/// C:\Program Files(x86)\ Reference Assemblies\Microsoft \Framewor [英] One of dev machine gives this error 2>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9): error MC1000: Unknown build error, 'Could not load file or assembly 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewor

查看:839
本文介绍了其中一台开发机器会出现此错误2> C:\ WINDOWS \ Microsoftoft.NET \ Framework \v4.0.30319 \ Microsoft.WinFx.targets(268,9):错误MC1000:未知的生成错误,'无法生成加载文件或程序集'file:/// C:\Program Files(x86)\ Reference Assemblies\Microsoft \Framewor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其中一台开发机器中,它会出现以下错误。

In one of dev machines, it gives the following error.

2> C:\ WINDOWS \ MicroStoswork \ Framework \v4.0.30319 \\ \\ Microsoft.WinFx.targets(268,9):错误MC1000:未知的生成错误,'无法加载文件或程序集'文件:/// C:\Program Files(x86)\ Reference Assemblies\Microsoft \ Framework \.NETFramework \v4.7.1 \Facades\System.Threading.Tasks.dll'
或其中一个依赖项。该模块预计包含一个程序集清单。' 

2>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9): error MC1000: Unknown build error, 'Could not load file or assembly 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\Facades\System.Threading.Tasks.dll' or one of its dependencies. The module was expected to contain an assembly manifest.' 

开发机器有什么问题? 该项目在其他机器上构建良好。

What is wrong with the dev machine?  The project builds fine on other machines.

谢谢,

彼得

推荐答案

Peter Ho,

Hi Peter Ho,

感谢您在此发帖。

对于您的问题,平台是什么? X64或x86?

For your question, what is the platform? X64 or x86?

听起来你加载的程序集是为x86编译的,你在x64进程上运行。

It sounds like your assembly which you loaded is compiled for x86 and you are running on an x64 process.

或许你正在使用与目标.NET Framework不同的.net框架程序集。请检查一下。

Or maybe you are using a different .net framework assembly with your target .NET Framework. Please check it.

最好的问候,

Wendy


这篇关于其中一台开发机器会出现此错误2> C:\ WINDOWS \ Microsoftoft.NET \ Framework \v4.0.30319 \ Microsoft.WinFx.targets(268,9):错误MC1000:未知的生成错误,'无法生成加载文件或程序集'file:/// C:\Program Files(x86)\ Reference Assemblies\Microsoft \Framewor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆