Azure DevOps publish Nuget to hosted feed

后端 未结 6 1259
野趣味
野趣味 2020-12-30 11:07

I have a question using the hosted (free) AzureDevops pipelines. I have a small .NET Core project which I want to create an Azure Devops pipeline where the following is done

6条回答
  •  失恋的感觉
    2020-12-30 11:35

    You have missed setting some required arguments in your NuGetCommand@2 task.

    Try this:

    - task: NuGetCommand@2
      displayName: 'NuGet push'
      inputs:
        command: push
        feedsToUse: select
        vstsFeed: nugetprojectstestfeed
        nuGetFeedType: internal
        publishVstsFeed: nugetprojectstestfeed
        allowPackageConflicts: true
    

    If we look into the documentation of NuGet task, for 'push' command certain arguments are required.

提交回复
热议问题