当 MSBuild@1(或 VSBuild@1)找不到 .NETFramework、Version=v4.0 的参考程序集时,Azure Pipelines 失败

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

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

DotNetCoreCLI@2

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

而不是

MSBuild@1
(或VSBuild@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.