gpt4 book ai didi

.net - 错误 : The assembly "c:\MyAssembly.dll" could not be converted to a type library

转载 作者:行者123 更新时间:2023-11-30 23:59:25 24 4
gpt4 key购买 nike

我正在尝试构建我的项目,当项目构建并且“注册 COM 互操作”属性被勾选时,我突然开始收到以下错误。

The assembly "c:\MyAssembly.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'SomeType, MyAssembly'. Error: Referenced type is defined in managed component, which is imported from a type library that could not be loaded (type: 'OtherType'; component: 'c:\OtherAssembly.dll').



团队中没有其他人收到此错误,只有我!显然,我对我的机器做了一些奇怪的事情,但是完全删除/删除和重新添加我能想到的所有东西的蛮力方法没有任何区别,所以我辞职去真正理解这个错误(多么拖累!)

所以:
  • 这个错误实际上意味着什么
  • 接下来我应该在哪里寻找关于问题的其他/更具体的诊断信息?
  • 最佳答案

    我有这个问题。我刚做了同样的,gactutil /u (用于卸载)和 gacutil /i (用于安装)并且问题已解决

    关于.net - 错误 : The assembly "c:\MyAssembly.dll" could not be converted to a type library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3545586/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com