-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is intended to be used with NUnit 4. #761
Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is intended to be used with NUnit 4. #761
Conversation
…ntended to be used with NUnit 4.
|
It can, but it references classes like ClassicAssert which only exist in NUnit v4, so the messages are often incorrect, even if the majority of quick fixes will be fine. |
The analyzer works with both NUnit 3 and 4. It detects which version if NUnit is referenced in your project and changes behaviour accordingly. It has to be used with NUnit 3 to prepare moving to NUnit 4 as the latter has breaking changes, especially regarding message formatting. |
By all means suggest an alternative phrasing - I feel v4 is at least more accurate than v3, but we may be able to do better. |
We could just say |
3+ is fine. Also mentioning the migration is good. Where do you say it references The {v4 migration guide](https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html#convert-classic-assert-to-constraint-model) says:
|
Oh sure, the analyzers existed, it's just they give an incorrect message (precisely because the message talks about the ClassicAssert class, which doesn't exist in v3). It's just a small peeve. |
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.
I'm ok with these changes
No description provided.