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

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.


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.