Microsoft.Common.targets(3341,9):错误MSB3097 [英] Microsoft.Common.targets(3341,9): error MSB3097

查看:544
本文介绍了Microsoft.Common.targets(3341,9):错误MSB3097的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在构建一个64位应用程序.当我构建"projectA"时,出现错误:

C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(3341,9):错误MSB3097:文件"C:\ path \ to \ bin \ projectA.dll"不是有效的程序集.

有人知道问题出在哪里吗?

谢谢

*****

看来COM Interop的寄存器在VS2010中不起作用.如果我禁用此选项,错误将消失.我听说这是VS2008中的已知问题,但已在VS2010中修复.

VS2010还是一个问题吗?有什么解决方案吗?

Hi, I am building a 64 bit application. When I build the "projectA", there is an error:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3341,9): error MSB3097: File "C:\path\to\bin\projectA.dll" is not a valid assembly.

Does anyone know what the problem is?

Thanks

*****

It seems the register for COM Interop does not work in VS2010. If I disable this option, the error disappears. I heard it was an known issue in VS2008 but has been fixed in VS2010.

Is it still an issue in VS2010? Is there any solution?

推荐答案

如果您的项目是64位,而您尝试使用的.DLL是32位,则它将无法正常工作,并且可能会出现该错误.您不能在同一项目或过程中组合64位和32位代码.
If your project is 64 bit and the .DLL you''re trying to use is 32-bit it won''t work and could come up with that error. You cannot combine 64- and 32-bit code in the same project or process.


这篇关于Microsoft.Common.targets(3341,9):错误MSB3097的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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