This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9491|Reply: 0

Azure DevOps 2020 (VI) Upgrade NuGet tools

[Copy link]
Posted on 9/11/2020 1:24:17 PM | | | |
Azure DevOps 2020 (1) First Introduction to Microsoft Azure DevOps (TFS)
https://www.itsvse.com/thread-9239-1-1.html

Azure DevOps 2020 (II) Azure DevOps Server Express 2020 RC2 installation tutorial
https://www.itsvse.com/thread-9375-1-1.html

Azure DevOps 2020 (III) limits search (ES) memory footprint
https://www.itsvse.com/thread-9371-1-1.html

Azure DevOps 2020 (IV) Compiled jobs using Pipelines
https://www.itsvse.com/thread-9378-1-1.html

Azure DevOps 2020 (V) Automate the release of NUGET packages using Pipelines
https://www.itsvse.com/thread-9381-1-1.html
When executing NuGet tasks, the default usage version of Azure DevOps is NuGet 4.1.0, but due to the lower version of the tool, some new features are not supported, such as the inability to push .snupkg files.



NuGet publishes both packages to nuget.org. MyPackage.nupkg will be published first, followed by MyPackage.snupkg. (Requires :nuget.exe v4.9.0 or later)

nuget.exe The tool is located under the directory "D:\agent\vsts-agent-win-x64-2.170.1\_work\_tool\NuGet". (Not fixed, according to your actual situation)

Default version:



Before the agent task pushes the NuGet package, drag a NuGet Tools Installer task, as shown below:



YAML Format Configuration File:



For NuGet versions, see:The hyperlink login is visible.

AgainWhen the release pipeline is executed for the first timeAzure DevOps will help us download the NuGet 5.7.0 tool, download the x86 version, but the name is x64, we don't know why, we should not distinguish between x86 and x64 versions, use the same thing.



Execute the release pipeline again, the NuGet tool will be taken from the cache and will not be downloaded again.



(End)





Previous:Azure DevOps 2020 (V) Automate the release of NUGET packages using Pipelines
Next:Hangfire adds data normally, but keeps executing because of the exception
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com