Azure DevOps publish Nuget to hosted feed

后端 未结 6 1277
野趣味
野趣味 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:48

    I have done two changes like below,

    1. In the FeedSetting Permissions, selected "Allow project-scoped builds"

    2. The YML file updated for NuGetCommand like below,

        task: NuGetCommand@2
          displayName: 'Publish NuGet package'
          inputs:
            command: push
            feedsToUse: 'select'
            packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
            nuGetFeedType: 'internal'
            publishVstsFeed: 'Space Game - web - Dependencies/Tailspin.SpaceGame.Web.Models'
            allowPackageConflicts: true
    

    And the issue is resolved now...

    Thank you guys...

    ~KC

提交回复
热议问题