Failed to use .NET SDK agent in Azure DevOps Build Pipeline

后端 未结 4 1322
深忆病人
深忆病人 2021-02-19 06:33

I have a ASP.NET Core 2.1 and added a nuget package of Microsoft.WindowsAzure.Storage , But after pushing the code to repo, the build pipeline occurs package error while runnin

4条回答
  •  轮回少年
    2021-02-19 07:15

    I encountered the same issue with version 2.1.505 and now I am using the following configuration for variables and installer step for .NET Core in my yaml pipeline while using version 3.1.101 and it fixed my issue.

    variables:
      buildConfiguration: 'Release'
      dotnetSdkVersion: '3.1.101'
    
    steps:
    - task: DotNetCoreInstaller@0
      displayName: 'Use .NET Core SDK $(dotnetSdkVersion)'
      inputs:
        version: '$(dotnetSdkVersion)'
    

提交回复
热议问题