Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 632
Denis Agarev Avatar asked Feb 20 '13 13:02

Denis Agarev


People also ask

What is solution file in Visual Studio?

A solution is a structure for organizing projects in Visual Studio. The solution maintains the state information for projects in two files: . sln file (text-based, shared) .

What is .SLN file in asp net?

An SLN file is a structure file used for organizing projects in Microsoft Visual Studio. It contains text-based information about the project environment and project state. When opened, the preSolution, Project, and postSolution information is read from the SLN file.


1 Answers

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.

like image 75
Jehof Avatar answered Oct 01 '22 18:10

Jehof