Click here to Skip to main content
15,888,007 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
We are using SonarQube 5.0 and MSBuild Sonar Runner 1.01 C# plugin 4.2, jdk 1.8,

While running the analysis with FxCop Rules enabled we Caused by: 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".

I have installed fxcop 10.0.we are Using in windows server 2008 R2, we are not using any database,My major concern is if I deactivate all my fxcop rules then my sonar works.But if I activate then I get the above error, so tell me what should I do after installing FXcop? I mean to tell what are the extra configuration need to be done If I want my sonar to run with fxcop. Kindly revert me back with your suggestion
Posted

1 solution

MSBuild 14+ needs to be installed.
Check out the prerequisites at Analyzing with SonarQube Scanner for MSBuild - SonarQube Documentation - SonarQube[^].
 
Share this answer
 
Comments
Member 12124765 17-Jan-16 1:30am    
Modify the comment. Deleted
I have installed the msbulid from https://www.microsoft.com/en-us/download/details.aspx?id=48159 and pasted in path and installed vb.net plugin 2.4 no use,again the same error, Can you help me with exact config for fxcop or how fxcop needs to be configured? I even discussed with sonar team no use, or if you have any setup which is successful kindly share it to rakshithshetty25@gmail.com, Its very important for my company project

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900