Sonar for dotNet
<div id="cnblogs_post_body">以下没详细说明的可以在http://www.sonarsource.org/ 找到0. JAVA的SDK要装,.net那些也要有。
1. 设计算机环境变量,(用 /M设系统的)
SETX SONAR_RUNNER_HOME D:\sonar-runner-2.0\ /M
SETX PATH "%PATH%;D:\sonar-runner-2.0\bin" /M
2.把Sonar的server, sonar的runner都下载下来
server: http://www.sonarsource.org/downloads/
runner:http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner
3. FxCop, StyleCop 和Gendarme 下载下来安装
4. 设好runner的D:\sonar-runner-2.0\conf\ 里的sonar-runner.properties
5.在你要测的项目的solution所在的文件夹里新加一个sonar-project.properties,里面内容编辑好
6.把server跑起来,http://localhost:9000应该能打开了
7.命令行切换到你自己的sln所在的目录,运行sonar-runner
页:
[1]