Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This article covers:

  1. What the prerequisites are,.

  2. How to set up your environment,.

  3. How to create a NuGet package for uploading to our private NuGet feed.

  4. How to upload your external dependencies to a NuGet feed.

  5. How to create a project-related nuget.config file to use your feed.

Prerequisites
Anchor
prerequisites
prerequisites

...

  1. 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
#create-project-related-nuget
#create-project-related-nuget

For projects to use the Azure Artifacts feed, you must include the following nuget.config file in the root of your project.

View file
namenuget.config

Image Added

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

...