Azure Pipelines 失败,而 MSBuild@1 找不到 .NETFramework,Version=v4.0 的参考程序集。要解决此问题,请安装 Developer

问题描述 投票:0回答:1
.net azure-devops azure-pipelines azure-pipelines-build-task azure-pipelines-tasks
1个回答
0
投票

将相同的线程发布到 GitHub 后,有人建议我,并且它实际上有效地使用

DotNetCoreCLI@2

          - task: DotNetCoreCLI@2
            displayName: 'Build Project: *.sqlproj'
            inputs:
              command: 'build'
              projects: '**\*.sqlproj'

而不是

MSBuild@1

         - task: MSBuild@1
            displayName: 'Build Project: *.sqlproj'
            inputs:
              solution: '**\*.sqlproj'
              platform: 'Any CPU'
              configuration: Release

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/dotnet-core-cli-v2?view=azure-pipelines

© www.soinside.com 2019 - 2024. All rights reserved.