msbuild - Windows 代理无法识别 SonarScanner.MSBuild.exe - GitHub Actions
问题描述
开始 Sonarqube 扫描仪时,我在 Windows 代理上遇到错误。
MSBuild.SonarQube.Runner.exe : The term 'MSBuild.SonarQube.Runner.exe' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
以下是我在工作流程中使用的命令。
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: powershell
run: |
MSBuild.SonarQube.Runner.exe begin /k:"${{ env.PROJECT_KEY }}" /v:"${{ env.YEAR }}.${{ env.PERIOD }}.${{ env.REVISION }}.${{ github.run_number }}" /n:${{ env.PROJECT_NAME }} /d:sonar.host.url=${{ env.SONARQUBE_HOST_URL }} /d:sonar.login=${{ secrets.SONAR_TOKEN }} /d:sonar.verbose="false"
msbuild ProjectName.sln /p:SkipInvalidConfigurations=true /p:TrackFileAccess=false /p:Configuration=Release /p:Platform="x86"
MSBuild.SonarQube.Runner.exe end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
有谁知道如何解决这个问题?请帮忙。
解决方案
推荐阅读
- sql - 选择中列名和变量的连接别名
- java - 无法从 java 项目加载 DLL C# 的方法
- javascript - 打字稿 typeof 字符串无法按预期工作
- javascript - React - 当用户放大(Ctrl +)时如何在模态表单中制作响应字段?
- node.js - 在无状态操作上等待 Lock()
- reactjs - 使用 useState 为其分配 match.params 值时出现错误太多重新渲染
- elasticsearch - 使用弹性搜索比较两个字段 7
- python - 在 NER 中具有可重复的结果
- apache-kafka - FlinkKafkaConsumer/Producer & Confluent Avro 模式注册表:验证失败 & 兼容模式写入无效模式
- python - 在python中对多维数组进行排序