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

本文关键字:环境变量 问题 突然 应用程序 VSP2340 | 更新日期: 2023-09-27 18:26:55

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

VSP2340: Environment variables were not properly set during profiling run and managed symbols may not resolve.  Please use vsperfclrenv before profiling.

我在谷歌上搜索并尝试了一些东西,但我无法找到如何在VS2012中再次实现这一点。

几周前,我发现有人也有同样的问题没有得到解决:VS2013:";VSP2340:环境变量未正确设置";即使从IDE 运行

提前谢谢。

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

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

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