InstrumentationTask hangs on run
See original GitHub issueI have setup Covelet in several solutions gathering up code coverage and reporting them to SonarQube. I’m having trouble with one particular solution and I’m not sure where to begin debugging. I have this simple command:
dotnet test mysolution.tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[xunit.*]*"
For most solutions, this runs just fine in PowerShell and I’m very happy with Coverlet. But on this one, it just hangs once the build is complete. After I break out, then PS starts repeating this warning over and over:
C:\myusersfolder\.nuget\packages\coverlet.msbuild\2.5.1\build\netstandard2.0\coverlet.msbuild.targets(20,5): warning MSB4220: Waiting for the currently executing task "Coverlet.MSbuild.Tasks.InstrumentationTask" to cancel. [C:\Projects\...\mysolution.tests.csproj]
Not sure where to start on debugging this. Any ideas?
Running VS2017, all of these projects are .NET core targeting net462. Can’t think of anything about this solution that’s different than the ones this works fine on, except that it’s a bit larger than the others.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19
Top GitHub Comments
To fix my issue I had to remove the default storeName in the method call
public static X509Certificate2 DoSomething(StoreName storeName = StoreName.My)
to
public static X509Certificate2 DoSomething(StoreName storeName)
when task hand and if you’re in debug(attached) you can click on VS pause button and check all stacks to understand where app hanging https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/viewing-the-call-stack-in-visual-studio you’ll see one stack for every thread running.