I have also tried to install the SonarAnalyzer.CSharp NuGet package into one of our projects in the solution and added the analyzers to the csproj file with the <Analyzer… tags as described in the link given by Julien Henry (https://www.jetbrains.com/help/rider/Using_NET_Compiler_Analyzers.html).
This works quite well with the solution wide analysis, but for some reason it slows down the build process dramatically! The project, where I added the analyzers usually need up to 10 seconds to build, but with the analyzers added the build takes 3 minutes!! Even the solution wide analysis does not take so much time…
Is there any chance I can solve this problem. Am I’m doing something wrong? I have added the Google.Protobuf.dll, SonarAnalyzer.CFG.dll, SonarAnalyzer.dll and SonarAnalyzer.CSharp.dll to the Analyzers section in the csproj file (in this order).
Anyone else also had/has this issue?