Converting Existing Projects or WinForm project that do not seem to instrumented

May 16, 2012 at 10:20 PM

Follow the documentation steps for "Tweak An Existing Project" and while you are editing the project file you need to also change the ItemGroup for compile.

The keyword changes from Compile to Instrument, note you do not instrument a designer file just the base class.

<ItemGroup>   
    <Instrument Include="OvDotNetApi.cs">
      <SubType>Component</SubType>
    </Instrument>
    <Compile Include="OvDotNetApi.Designer.cs">
      <DependentUpon>OvDotNetApi.cs</DependentUpon>
    </Compile>
    <Instrument Include="MemoryMappedFile.cs" />
    <Instrument Include="OvInterface.cs">
</ItemGroup>

I have also seen this error when creating a instrumented winform solution.