元数据操作失败 [英] metadata operation failed

查看:216
本文介绍了元数据操作失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用MFC从早期版本的VS移植的应用程序


我已经完成了编译和链接的更新,但有15个不同风格的错误of 


元数据操作fialide(8013118D):重复类型中的布局信息不一致......


这与内置的导入库相关联尽可能保持一致。


查看了互联网上的内容,但没有找到解决我问题的方法

解决方案


感谢您在这里发帖。


>>我已经完成了编译和链接的更新,但有15个错误,各种风格的


元数据操作fialide(8013118D):重复类型中的布局信息不一致...

这与导入的库相关联,该库也以尽可能一致的方式构建。


请提供有关导入库的更多信息。它是Microsoft库文件还是第三方库文件?它是否支持CLR或ATL?


诊断此问题的一种方法是运行
ildasm -tokens
,以查找哪些类型具有error_message中列出的标记,并查找差异。在元数据中,两个具有相同名称的不同类型无效,即使只是LayoutType属性不同。


有关更多可能的原因和解决方案,请参阅下面这些类似的情况。 / p>

https://social.msdn.microsoft.com/Forums/en-US/7bc613fa-1669-4570-a0dc-e9df4be2bac8/error-lnk2022-metadata- operation-failed-8013118d-inconsistent-layout-information-in -licated


https://stackoverflow.com/questions/11990095/lnk2022-metadata-operation-inconsistent-layout-information-in-duplicated-types


https://social.msdn.microsoft.com/Forums/vstudio/en-US/eb98cf71-ad5c-45d7-802d-3017eac10aa2/linking -error-error-lnk2022-metadata-operation-failed-8013118d-inconsistent-layout-information


希望这可以帮到你。


最诚挚的问候,


Baron Bi




I have an application ported from an earlier version of VS using MFC 

I have worked through the updates for the compile and link but have 15 errors that are various flavors of 

metadata operation fialide (8013118D): inconsistent layout information in duplicated types ...

this is associated with an imported library also built in as consistent a way as possible.

Have looked through the content on the internet but have not found a solution for my problem

解决方案

Hi,

thanks for posting here.

>>I have worked through the updates for the compile and link but have 15 errors that are various flavors of
metadata operation fialide (8013118D): inconsistent layout information in duplicated types ...
this is associated with an imported library also built in as consistent a way as possible.

Please provide more information about the imported library. Is it a Microsoft library file or Third-party library file? Does it support CLR or ATL?

One way to diagnose this problem is to run ildasm –tokens on the object files to find which types have the tokens listed in error_message, and look for differences. In metadata, two different types with the same name is not valid, even if the just LayoutType attribute is different.

For more possible reasons and solutions, please refer to these similar case below.

https://social.msdn.microsoft.com/Forums/en-US/7bc613fa-1669-4570-a0dc-e9df4be2bac8/error-lnk2022-metadata-operation-failed-8013118d-inconsistent-layout-information-in-duplicated

https://stackoverflow.com/questions/11990095/lnk2022-metadata-operation-inconsistent-layout-information-in-duplicated-types

https://social.msdn.microsoft.com/Forums/vstudio/en-US/eb98cf71-ad5c-45d7-802d-3017eac10aa2/linking-error-error-lnk2022-metadata-operation-failed-8013118d-inconsistent-layout-information

Hope this could be help of you.

Best Regards,

Baron Bi


这篇关于元数据操作失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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