您好,我正在构建一个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
发布评论