tyoma/micro-profiler

Removing profiler leaves extra spaces in the project file

icnocop opened this issue · 0 comments

Hi.

When I remove the profiler on a project, it leaves extra spaces in the project file.

For example:

  1. Before enabling profiler:
<AdditionalOptions>/Zm135 %(AdditionalOptions)</AdditionalOptions>
  1. After enabling profiler:
<AdditionalOptions>/Zm135  /GH /Gh %(AdditionalOptions)</AdditionalOptions>

Notice the two spaces between /Zm135 and /GH.

  1. After removing profiler:
<AdditionalOptions>/Zm135   %(AdditionalOptions)</AdditionalOptions>

Notice the three spaces between /Zm135 and %(AdditionalOptions).

I expected the inner text of the AdditionalOptions element to return back to its original value.

Visual Studio 2015
MicroProfiler 1.4.605.0 (Visual Studio Extension)

Thank you. :)