1. 安装全局工具
    dotnet tool install --global dotnet-sonarscanner
  2. 创建应用,保存自己的密钥
  3. 执行命令
    dotnet sonarscanner begin /k:"项目名称" /d:sonar.host.url="http://IP:3005" /d:sonar.token="sqp_密钥"
    dotnet build
    dotnet sonarscanner end /d:sonar.token="sqp__密钥"