Dear .NET developers,
Today we released version 9 of the SonarScanner for .NET.
This version brings one major change: the scanner will now ignore the sonar.sources and sonar.tests properties.
The work we did on the last few versions showed us some people use these for .NET analysis. However, these properties never actually did anything for the .NET scanner (because we take care of finding the relevant sources and tests automatically), and could generate errors in some specific cases (indicating that a file cannot be indexed twice).
We had published a pre-release 9 version that would raise an error if you used these properties, but, in the end, we decided that this would lead to disruption, forcing people to update all their pipelines. If you use these properties, we will emit a warning both in the logs and in the server UI and proceed with the analysis.
The second small enhancement is that for source-generated projects that don’t have valid GUIDs, the severity of the logging message has been reduced from WARN
to INFO
. This will help people who rely on TreatWarningsAsErrors
for their workflow.
As usual, please do not hesitate to send us your feedback, issues, or comments!
If we do not discover any major issues, this version will make it to the AzureDevOps extensions in a few weeks.
Denis.