-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
MA0165: Make interpolated string #764
Comments
Same issue with Visual Studio 17.11.5: Only using dotnet_diagnostic.MA0165.severity=suggestion fixed the compiler error |
Which compiler error? Do you have an error when building the project? |
Thank you very much for a such quick reply, @meziantou! 🙏 You are right - I have the following in
It's why I'm getting errors. It's a bit surprising that the default has a higher priority than defined in the analyzer. Adding the following
resolves the issue. BTW, Rider has the same code fix for a long time ("To string interpolation"), so for Rider users it's redundant (and confusing which one to use 😁). But for VS users, it's a great code fix (for such users, the severity should be set to |
FYI: Rider is now free for non-commercial use - so you can use it for your project. |
Same for us, our default severity is error, came here so we had to do the |
Version of the Meziantou.Analyzer NuGet package
2.0.175
Rule Identifier
MA0165
Target Framework
net8.0
C# Language version
C# 10
Description
After upgrading to
2.0.175
from2.0.173
getting the following errorsRequired change doesn't make much sense - the analyzer requires converting all strings to interpolated strings
Also, the link
https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0165.md
is brokenReproduction Steps
Minimal code:
Other information
No response
The text was updated successfully, but these errors were encountered: