排除自定义C ++项目的清单 [英] Exclude manifest for custom C++ project
问题描述
你好,我正在开发基于IronPythonIntegration的自定义C ++项目(用于gcc编译器).有什么方法可以消除链接阶段的异常' System.BadImageFormatException' ? mscorlib.dll中发生了类型为'System.BadImageFormatException'的第一次机会异常 Hello, I'm developing custom C++ project (for gcc compiler) which is based on IronPythonIntegration. Is there any way to get rid of exception 'System.BadImageFormatException' during linking stage? A first chance exception of type 'System.BadImageFormatException' occurred in mscorlib.dll 其他信息:无法加载文件或程序集'c:\ sources \ mathlib \ Debug \ mathlib.a'或其依赖项之一.该模块应该包含一个程序集清单. Additional information: Could not load file or assembly 'c:\sources\mathlib\Debug\mathlib.a' or one of its dependencies. The module was expected to contain an assembly manifest. 其他信息:文件已损坏. (来自HRESULT的异常:0x8013110E) Additional information: File is corrupt. (Exception from HRESULT: 0x8013110E) 通过Main Project中的参考"引用该文件(mathlib.a),然后使用以下链接: That file (mathlib.a) is referenced through 'References' in Main Project and then is linked using: 在gcc.targets文件中.
似乎与清单签名等有关.
Seems like related to manifest signing etc.
它带有以下例外:
Microsoft.Build.Tasks.dll中发生了类型为'System.BadImageFormatException'的第一次机会异常
It's accompanied with this exception:
A first chance exception of type 'System.BadImageFormatException' occurred in Microsoft.Build.Tasks.dll
ReferencedLibraries = " @(ReferencePath) "
ReferencedLibraries="@(ReferencePath)"
In gcc.targets file.
推荐答案
Hello Konst, 感谢您的发帖!我建议将您的问题发布到位于以下位置的Unix服务之一中:
祝您度过愉快的一天!
这篇关于排除自定义C ++项目的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!