SonarSource / sonar-dotnet

Code analyzer for C# and VB.NET projects
https://redirect.sonarsource.com/plugins/csharp.html
GNU Lesser General Public License v3.0
752 stars 223 forks source link

Replace deprecated Roslyn API #7502

Open martin-strecker-sonarsource opened 1 year ago

martin-strecker-sonarsource commented 1 year ago

As noted by the Roslyn team, the analyzer context constructors will be removed in a future version of Roslyn. dotnet/roslyn#63440 We need to replace their usage in some of our tests. The affected types/ctors can be found here: https://github.com/dotnet/roslyn/commit/a101a16e7ee770a4f706770f296ffc70b19300f5 To find the code affected look for CS0618 warnings.

mary-georgiou-sonarsource commented 3 weeks ago

The issue, as mentioned, is only in the scaffolding of the tests, which eventually we'll need to work around. For now I dropped the priority to medium.