-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverlet collectors integration does not work on full framework projects #759
Comments
I have the same issue on TeamCity. |
Yes the collectors version of coverlet at the moment is supported only for .NET Core app and not for .NET Framework, I'm waiting some answer from vstest team(as you can see on that open issue) to understand if move to netstandard is ok or no(I think it's possible but I need confirmation), because collector was written by vstest team not by us. |
dup of #705 I'll update documentation asap. |
@NPadrutt @captainjono for now the unique way to use coverlet for .NET Framework is https://github.com/tonerdo/coverlet#msbuild-integration-suffers-of-possible-known-issue and https://github.com/tonerdo/coverlet#net-global-tool-guide-suffers-of-possible-known-issue that suffer some known issue, but not all users hit the problem, because depends from the nature of code. |
@MarcoRossignoli Thank you! I found a blog post where he integrated it into teamcity via msbuild, so exactly what I was looking for and that worked. |
Glad to hear...and sorry, I think we will support .NET Framework...but I cannot update code without green light from vstest team so I'm blocked for now on it. |
TL;DR; The issue is that we cannot load netcoreapp dll into .net framwork process because resolution fails, so the solution should be compile to netstandard so .net framework host(test host in this case) will load coverlet with no problem. |
thanks @MarcoRossignoli. Your effort is greatly appreciated! :) |
In practice, it seems like coverlet is only compatible with analysing .net core projects? Could someone please confirm the current compatibility of Coverlet with respect to this bug microsoft/vstest#2278
And update the project start page to reflect this would be great. I am trying to implement this on a .net full project, by calling vstest.console.exe directly with
The text was updated successfully, but these errors were encountered: