本文介绍了VSP2340在分析应用程序时突然出现环境变量问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以解释为什么我会在VS2012中尝试做任何类型的性能分析(与我一直有的一样),我突然得到这个。
Can anybody explain why i'm suddenly getting this when trying to do any kind of performance profiling (the same way i always have) from within VS2012.
VSP2340: Environment variables were not properly set during profiling run and managed symbols may not resolve. Please use vsperfclrenv before profiling.
我已经google了,尝试了一些东西,但是我无法找到如何获得这个工作在VS2012内再次。
I've googled and tried a few things, but i'm unable to find out how to get this working from within VS2012 again.
我发现有一个人在几个星期之前回到同一个未回答的问题:
I found somebody with the same unanswered issue a couple of weeks back here: VS2013: "VSP2340: Environment variables were not properly set" even when running from IDE
提前感谢
推荐答案
- 开始 - 所有程序 - Microsoft Visual Studio 2012 - Visual Studio工具
- 右键单击打开VS2012 x64本地工具命令提示符,然后选择以管理员身份运行
- 将打开命令提示符。运行
vsperfclrenv / globalsampleon
- 重启机器
- Start - All Programs - Microsoft Visual Studio 2012 - Visual Studio Tools
- Right click "Open VS2012 x64 Native Tools Command Prompt" and select run as administrator
- The command prompt opens. Run
vsperfclrenv /globalsampleon
- Reboot machine
这篇关于VSP2340在分析应用程序时突然出现环境变量问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!