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
ExcludeFromCodeCoverage is inaccessible due to its protection level (version 3.3.37) #552
Comments
The .NET Core 1.x failing bit is a duplicate of #452. .NET Core 1.x is out of Microsoft support so it's not interesting to support out here either. |
Out of support, yes. But still the easiest way to test .NET Standard 1.x support. Since there are not likely to be any more frameworks that do not support #if NETSTANDARD1_0 || NETSTANDARD1_1 || NETSTANDARD1_2 || NETSTANDARD1_3 || NETSTANDARD1_4 || NETSTANDARD1_5 || NETSTANDARD1_6 || NETCOREAPP1_0 || NETCOREAPP1_1
#else
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif .NET 6 is coming out next year and the plan is to release a new major version every year after that, so this would help to future-proof. |
Well, if you want to send a PR to fix both cases, that's fine. |
It looks like that plan was changed in dotnet/sdk#13377 and dotnet/sdk#14798; they're going to define |
That's great to hear, @KalleOlaviNiemitalo. Thanks for sharing. |
I tried upgrading from 3.0.28 to 3.3.37, but started getting this error.
The problem appears to be compilation constants on the generated file for this attribute:
.NET Core 1.x does not support
ExcludeFromCodeCoverage
attribute, so the constants should be changed to:Note that .NET 5.x is also missing from the list.
The text was updated successfully, but these errors were encountered: