我已将 .NET Framework 3.5 TestAPP 转换为 .NET 6 TestAPP 并且运行良好。
我有一个自动化项目(C++ 项目),它使用 .NET Framework 3.5 TestAPP.dll 来运行测试,但现在我已经替换了 .NET Framework 3.5
.dll 与 .NET 6 TestAPP 即 TestAPP.dll
当我在命令行中运行 exe 时,出现错误:
“未处理的异常:System.IO.FileLoadException:无法加载文件
或程序集'System.Runtime,版本= 6.0.0.0,文化=中性,
PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一。这
找到的程序集的清单定义与程序集不匹配
参考。 (HRESULT 异常:0x80131040)”
如果有任何需要纠正的地方,请告诉我。
Resolved the error by changing the C++/CLI properties from visual studio project properties , which was referring to .NET framework earlier and i have changed the property as .NET core runtime(clr:netcore) and it is internally handled all GAC changes and worked well.
Hope it might help someone .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)