...
This article covers:
What the prerequisites are,.
How to set up your environment,.
How to create a NuGet package for uploading to our private NuGet feed.
How to upload your external dependencies to a NuGet feed.
How to create a project-related nuget.config file to use your feed.
Prerequisites
Anchor | ||||
---|---|---|---|---|
|
...
With your directory structure set up according to the above instructions, all that’s left to do is run the following command from within the
artifacts
folder.nuget push -Source DSD-CIVAV-Support-Feed -ApiKey az .\AjaxControlToolkit.3.5.40412.nupkg
You will be prompted to log into Azure DevOps including approving the 2FA request, if applicable.
...
Create a Project-Related Nuget file
Anchor | ||||
---|---|---|---|---|
|
For projects to use the Azure Artifacts feed, you must include the following nuget.config file in the root of your project.
View file | ||
---|---|---|
|
Troubleshooting Notes
Credentials Pop-Up
...
C:\Users\khourip\.nuget\plugins\netcore\CredentialProvider.Microsoft
substituting your user folder name.
...
NuGet Errors in Visual Studio
An error we encountered is when cloning a project with spaces. NuGet does not like this. Consider remove or replacing the %20
with a -
(hyphen) in your folder name.
Helpful Links
NuGet CLI push command | Microsoft Docs
...