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

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

此问题的临时解决方案:

1)删除vs2017Team ToolsPerformance ToolsPerformance Tools目录中的vsinstr.exe,将vsinstr.legacy.exe重命名为vsinstr.exe。

2)删除vs2017Team ToolsPerformance ToolsPerformance Toolsx64目录中的vsinstr.exe,将vsinstr.legacy.exe重命名为vsinstr.exe。

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

原文地址:https://www.cnblogs.com/wuxubiao/p/9790386.html