I'm trying to get Code Coverage for a dotnet core application through manual testing (I don't have any unit tests project)
As mentioned in this SO Question, I'm trying to use vsinstr for instrumentation and vsperfmon.
But when running the below command
vsinstr /coverage C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll
I get the below error.
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 -->
C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll
Original file backed up to
C:\Test\netcoreapp2.0\ConsoleAppCodeCoverageTest.dll.orig
Error VSP1019: Internal error. HRESULT=80004005
But if I use vsinstr on a .Net Framework application exe it works fine.
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.