我有 2 个项目的 Visual Studio 2010 解决方案:c# 和 c++
c++ 项目使用 .net 框架库并公开从 c# 项目引用的类。
一切都编译得很好,c# 项目智能帮助我使用从 c++ 公开的方法。但是当我尝试启动 c# 项目时,它会崩溃并出现异常:
Could not load file or assembly 'c++library.dll' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
内部异常为空
我尝试tdump
从命令行使用来查看库依赖项,但它以以下行结束:
部分的关键:错误:0x42213f 的内部错误,基数为 0x400000
我该如何解决?
先感谢您!