Hi,
in .NET 6 the Razor Compiler was updated to be implemented using Source Generators.
Now our Azure DevOps Server build pipeline fails if we enable SonarScanner. A workaround is to disable Source Generators in .csproj.
<PropertyGroup>
<UseRazorSourceGenerator>false</UseRazorSourceGenerator>
</PropertyGroup>
Versions:
SonarScanner for Azure DevOps v5.1.1 (SonarScanner for MSBuild 5.4)
SonarQube v9.2
Related issue:
C# Sonar Scanner with Source Generators - Report a bug - SonarSource Community
Related pages:
Using Source Generators with Blazor components in .NET 6 (andrewlock.net)
ASP.NET Core updates in .NET 6 Preview 2 - .NET Blog (microsoft.com)