You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RS1041 triggers when used with .net9, it is unlikely, in particular in (incremental) source generators used in the context of a single project (not intended to be consumed or intended to be consumed by the same net framework).
Forcing to use netframework2.0 is oddish so think this rule is not that accurate as of today
The text was updated successfully, but these errors were encountered:
In case you are sure that you will not need net framework support just create a .cs in your project with the following content:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
"RoslynDiagnostics",
"RS1041:Do not use obsoleted APIs",
Justification = "Suppression is necessary for this project.")]
Alternatively disbale the rul in your ruleset or editorconfig. I prefer having it in c# code
Now that the rule is ignored you can set the target framework to net8.0
RS1041 triggers when used with .net9, it is unlikely, in particular in (incremental) source generators used in the context of a single project (not intended to be consumed or intended to be consumed by the same net framework).
Forcing to use netframework2.0 is oddish so think this rule is not that accurate as of today
The text was updated successfully, but these errors were encountered: