Hi all,
This issue is for 5.3 with the 4.4 C# plugin and the most current msbuild runner.
It's pretty common for a .csproj to be shared across multiple solutions. Such a structure might look like the following (annotated to help clarity):
Root (Folder)
Shared (Folder)
Shared.csproj (File)
Shared.sln (File)
Client (Folder)
Client.csproj (File)
Client.sln (File)
I've made sure the analysis only runs once on the shared code by adding something like this to the project file.
<PropertyGroup>
<SonarQubeExclude>!$(SolutionPath.Contains("Shared.sln"))</SonarQubeExclude>
</PropertyGroup>
Now when I run I get the below error indicating I need to set the sonar.visualstudio.skipIfNotBuilt which I thought was deprecated. I've attached a sample solution demoing the issue.
Caused by: java.lang.IllegalArgumentException: The property "sonar.cs.fxcop.assembly" must be set and the project must have been built to execute FxCop rules. This property can be automatically set by the Analysis Bootstrapper for Visual Studio Projects plugin, see: http://docs.codehaus.org/x/TAA1Dg.If you wish to skip the analysis of not built projects, set the property "sonar.visualstudio.skipIfNotBuilt".