Microsoft.Common.targets(3341,9):错误MSB3097

编程入门 行业动态 更新时间:2024-10-28 01:17:18
本文介绍了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

本文发布于:2023-11-15 18:09:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596780.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Common   Microsoft   targets

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!