[bug]”System.InvalidProgramException:公共语言运行时检测到无效程序“解决方案


Visual Studio 2017版本15.8.x运行某些程序会报这样的错误:“System.InvalidProgramException:公共语言运行时检测到无效程序”

此问题的临时解决方案:

1)删除vs2017\Team Tools\Performance Tools\Performance Tools目录中的vsinstr.exe,将vsinstr.legacy.exe重命名为vsinstr.exe。

2)删除vs2017\Team Tools\Performance Tools\Performance Tools\x64目录中的vsinstr.exe,将vsinstr.legacy.exe重命名为vsinstr.exe。

或者使用最新的Visual Studio 预览版,微软将会下个版本修复该问题


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM