-
Notifications
You must be signed in to change notification settings - Fork 470
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
Allow [CallerArgumnetExpressionAttribute] after CancellationToken #6558
Conversation
@@ -440,6 +440,46 @@ public class C | |||
}"); | |||
} | |||
|
|||
#if NETCOREAPP3_1_OR_GREATER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are modelled after the original tests for the other Caller...Attributes
I had to limit the tests to .NET Core 3.1 and higher as .NET 4.7.2 does not contain the attribute.
I find it mildly irritating that the tests are run against netcoreapp3.1 instead of a more recent framework, as 3.1 is out of support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6558 +/- ##
=======================================
Coverage 96.43% 96.43%
=======================================
Files 1372 1372
Lines 320278 320319 +41
Branches 10295 10293 -2
=======================================
+ Hits 308848 308896 +48
+ Misses 8975 8968 -7
Partials 2455 2455 |
Since the analyzer is already excluding the other CallerXx attributes, makes sense to do it for this one as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use ReferenceAssemblies.Net.Net50
instead of the #if
? Other than that, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #6557