How to force Visual Studio not to add GlobalSection(Performance) section?

Visual Studio-2012ProfilingProjects and-Solutions

Visual Studio-2012 Problem Overview


I played with Visual Studio builtin profiling tools and now every time I check out any file this section automatically adds to my solution file:

GlobalSection(Performance) = preSolution
    HasPerformanceSessions = true
EndGlobalSection

I totally removed all profiling reports, then removed local copy of all source control files from this solution and update to latest. This section still in *.sln file after any checkout.

Other teammates who haven't used prfiler doesn't have this problem. Has anyone any ideas?

Visual Studio-2012 Solutions


Solution 1 - Visual Studio-2012

Open the PerformanceExplorer in Visual Studio by using the Menu Analyze -> Windows -> PerformanceExplorer and check if it lists any session entries.

If so delete them by doing a right-click on an entry to open the ContextMenu. Then select "Remove" from the menu.

You should also check the folder of your solution if it contains any .vsp or .psess files and delete them. These are the report files of a profiling session.

Solution 2 - Visual Studio-2012

Only way I could solve this was to close the solution, delete *.psess and *.vsp files from the root directory, reset my .sln file to the remote version and reopen the solution. Problem was then gone. This was using Visual Studio 2015 Community Edition.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDenis AgarevView Question on Stackoverflow
Solution 1 - Visual Studio-2012JehofView Answer on Stackoverflow
Solution 2 - Visual Studio-2012garrypView Answer on Stackoverflow