title: Code Coverage for a dotnet core application through manual testing
body: <p>I'm trying to get Code Coverage for a dotnet core application through manual testing (I don't have any unit tests project)</p>
  
  <p>As mentioned in this <a href="https://stackoverflow.com/questions/4951089/how-to-use-ms-code-coverage-tool-in-command-line">SO Question</a>, I'm trying to use vsinstr for instrumentation and vsperfmon.</p>
  
  <p>But when running the below command </p>
  
  <pre><code>vsinstr /coverage C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll
  </code></pre>
  
  <p>I get the below error.</p>
  
  <pre><code>Microsoft (R) VSInstr Post-Link Instrumentation 15.0.27128 x86
  Copyright (C) Microsoft Corp. All rights reserved.
  
  File to Process:
     C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll --&gt; 
  C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll
  Original file backed up to 
  C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll.orig
  
  Error VSP1019: Internal error.  HRESULT=80004005
  </code></pre>
  
  <p>But if I use vsinstr on a .Net Framework application exe it works fine. </p>
  
  <p>Any idea how to fix this of if there is any other approach to get code coverage for a dotnet core application through manual testing. </p>