我正在尝试将我的 VS 2008 解决方案移至 VS 2010。如果我将目标框架保持在 4.0,一切都会完美运行(编译和链接)。
当我更改框架 2.0 并更改平台框架 v100(以解决编译错误)时,只会遇到元数据链接错误,如下所示:
错误 LNK2022:元数据操作失败 (80131195):自定义属性不一致:(0x0c0000f7)。 C:\Development\Main\Filemaster\SoxService\MSVCMRTD.lib(managdeh.obj)
我读过我应该使用 ILDAsm 但它不喜欢我的 obj 文件,并且由于链接未完成,我不知道没有要加载的exe。
任何人都可以提供一些有关如何查找此类错误的建议吗?
我最讨厌的事情就是与工具作斗争!
I'm trying to move my VS 2008 solution to VS 2010. Everything works perfectly (compile and link) if I keep the target framework at 4.0.
When I change the framework 2.0 and change the platform framework v100 (to get past compile errors) only to run into metadata linking errors, like this one:
error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000f7). C:\Development\Main\Filemaster\SoxService\MSVCMRTD.lib(managdeh.obj)
I've read that I'm supposed to use ILDAsm but it doesn't like my obj file and since the link didn't complete I don't have an exe to load.
Can anyone please provide some advice on how to find the sorts of errors?
I hate nothing worse than fighting the tool!
发布评论
评论(1)
我能够通过进入项目 XML 文件本身并将 TargetFramework 更改为 4.0 来解决这个问题,之后一切都编译和链接良好。
Hans 他指的是 C++ 本机多目标,可以找到 在此位置可以在项目属性>平台框架下进行更改一般性的,并由文章建议 - 然而,由于 VC++ 中的明显错误,这不起作用
I was able to get around this problem by going into the project XML file itself and changing the TargetFramework to be 4.0 After that everything compiled and linked fine.
Hans he is referring to C++ Native Multi-Targeting which can be found at this location Platform Framework can be changed under project Properties > General and is advised by the article - however this does not work due to apparent bugs in VC++