C# 分析应用程序时,VSP2340环境变量突然出现问题

C# 分析应用程序时,VSP2340环境变量突然出现问题,c#,visual-studio-2012,profiling,environment-variables,memory-profiling,C#,Visual Studio 2012,Profiling,Environment Variables,Memory Profiling,有谁能解释一下为什么我在VS2012中尝试进行任何类型的性能评测(与我一直采用的方式相同)时会突然出现这种情况 VSP2340: Environment variables were not properly set during profiling run and managed symbols may not resolve. Please use vsperfclrenv before profiling. 我已经在谷歌上搜索并尝试了一些东西,但我无法找到如何在VS2012中再次实现这

有谁能解释一下为什么我在VS2012中尝试进行任何类型的性能评测(与我一直采用的方式相同)时会突然出现这种情况

VSP2340: Environment variables were not properly set during profiling run and managed symbols may not resolve.  Please use vsperfclrenv before profiling.
我已经在谷歌上搜索并尝试了一些东西,但我无法找到如何在VS2012中再次实现这一点

几周前我在这里发现有人有同样的问题没有答案:


提前感谢。

我在Visual Studio 2012上也有同样的问题。按照以下步骤操作:

  • 开始-所有程序-Microsoft Visual Studio 2012-Visual Studio工具
  • 右键单击“打开VS2012 x64本机工具命令提示符”,然后选择“以管理员身份运行”
  • 命令提示符打开。运行
    vsperfclrenv/globalsampleon
  • 重新启动计算机

也适用于Visual Studio 2015。唯一的缺点是“编辑并继续”不再有效。可以通过执行
vsperfclerenv/globaloff