Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Deploy nuget package to internal Azure Artifact feed

$
0
0

I am trying to setup an Azure Artifact feed to deploy nuget packages my team creates. I have the feed created and connected to my upstream feed.enter image description here

In my .yaml file, I have it referencing the upstream feed to restore from and push to with the trigger happening on my main branch(I have also tried setting the referenced feed to be my non-upstream feed, but I get the same result I mention below).

trigger:- main    pool:  vmImage: ubuntu-latestvariables:  buildConfiguration: 'Release'steps:- task: DotNetCoreCLI@2  inputs:    command: 'restore'    projects: '**/*.csproj'    feedsToUse: 'select'- task: NuGetCommand@2  inputs:    command: 'restore'    restoreSolution: '**/*.sln'    feedsToUse: 'select'    vstsFeed: '{InternalUpstreamFeedArtifact}'- task: NuGetCommand@2  inputs:    command: 'pack'    packagesToPack: '*.csproj'    versioningScheme: 'off'- task: NuGetCommand@2  inputs:    command: 'push'    packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'    nuGetFeedType: 'internal'    publishVstsFeed: '{ InternalUpstreamFeedArtifact }'

When I check the feed after I run my pipeline, it never goes into either feed. I also don't get any errors during the run process. I'm not sure if providing the project's folder structure will help, but I'm including it anyway in case that may be the reason why.

Path: \Service\Service\bin\Debugenter image description hereenter image description hereenter image description hereenter image description hereenter image description here

Finally, here's what my nuget.config file looks like.

<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><clear /><add key="TestFeed" value=https://pkgs.dev.azure.com/Company/Project/_packaging/TestFeed/nuget/v3/index.json /></packageSources></configuration>

Can anyone explain what I'm doing wrong and point me in the right direction to fix it? Thanks in advance for any & all help.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>