VS2013: “VSP2340: Environment variables were not properly set” even when running from IDE
问题 I am profiling a C# program from Visual Studio 2013. I go to Analyze -> Performance and Diagnostics to start the wizard. It gives me a choice of profiling method. If I choose the default, CPU sampling, then profiling works and I can see the results. However if I choose the third option, .NET memory allocation, then after my application has finished I see empty results and this error in the Visual Studio output window: VSP2340: Environment variables were not properly set during profiling run