Versions used
- SonarQube 7.7 Community Edition
- Scanner: sonar-scanner-msbuild-4.6.2.2108-netcoreapp2.0
- Plugin: used the RoslynPluginGenerator against https://github.com/DotNetAnalyzers/StyleCopAnalyzers
error observed*
CSC : error CS0006: Metadata file ‘/tmp/.sonarqube/resources/2/analyzers/dotnet/cs/StyleCop.Analyzers.dll’ could not be found
steps to reproduce
- Using RoslynPluginGenerator, created a plugin for the StyleCop.Analyzers nuget package
- Placed the plugin into SonarQube and restarted SonarQube
- Ran a build against a C# .NET Core project which used the plugin and ran on a Linux build server
- Received the error above even though the files existed
potential workaround
- Disabled the SonarQube plug-in, but used the nuget package as a Code Analyzer inside the build process and the code analyzer worked fine even on a Linux machine
Comments
Do you know of others who have successfully used the RoslynPluginGenerator and run on a Linux hosted agent within Azure DevOps?