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

Azure DevOps Pipeline task DownloadPackage@1 omits nuget package version

$
0
0

I have an Azure DevOps artifact feed that hosts NuGet packages. I am trying to download a NuGet package from it using a Pipeline task DownloadPackage@1.

`

- task: DownloadPackage@1  inputs:    packageType: 'nuget'    feed: 'RandomFeed'    definition: 'MyPackage'    version: '1.0.0.0.'    downloadPath: '$(System.ArtifactsDirectory)'

`

When I download it manually from the feed or with API, the package is downloaded with its full name and version appended - MyPackage.1.0.0.0.nupkg

When I try to use the DownloadPackage@1, the downloaded package has it's version omitted and only the title remains - MyPackage.nupkg

Is there a way to download the nuget from the feed with its full name ? I target to use the integrated Pipeline tasks so I can use the System.AccessToken for the Pipeline and not use additional ones for example to fetch it from the API.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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