Visual Studio Code Nuget



Progress® Telerik® Reporting R1 2021

Visual Studio Code Nuget Update

Install Nuget Gallery from extension marketplace. Launch from the menu bar View Command Palette or ⇧⌘P (Ctrl+Shift+P on Windows and Linux). Type Nuget: Open Gallery. The GUI above is displayed. NuGet Gallery Microsoft.VisualStudio.Web.CodeGeneration.Design 5.0.2. Code Generation tool for ASP.NET Core. Contains the dotnet-aspnet-codegenerator command used for generating controllers and views. There is a newer prerelease version of this package available.

New to Telerik Reporting? Download free 30-day trial

Telerik provides NuGet packages from private NuGet feed. The article elaborates on how to add the Telerik NuGet feed to the Visual Studio NuGet package manager.

Visual Studio Code Nuget Package

Prerequisites:

  • Visual Studio 2010 or newer.

  • Valid Telerik Reporting trial or paid license.

Setup

  1. Open Visual Studio.

  2. Go to Tools > NuGet Package Manager > Package Manager Settings, select Package Manager Sources and then click the + button.

  3. Choose feed Name, set the feed URL to: https://nuget.telerik.com/nuget and click OK.

    Figure 1: Visual Studio NuGet Package Manager and Telerik NuGet Feed:
  4. Create or load your project.

  5. Go to Tools > NuGet Package Manager > Manage NuGet Packages for solution.

  6. In the upper right-hand corner of the Manage Packages for Solution window, select the Telerik Package source that you just added.

  7. Choose the Online / Browse list of packages (depending on your VS version).

  8. Enter your Telerik credentials in the Windows Authentication dialog (e.g., user: my.name@my.company.com and password: myPassPhraseForTelerikDotCom).

  9. Enter your credentials only once by selecting the Remember my password checkbox.

    Figure 2: Enter your Telerik.com credentials to access the Telerik NuGet feed:
  10. Now all the packages that are licensed (paid or trial) to the above users are available in the Visual Studio NuGet Package manager.

Code

Setup with NuGet CLI

Visual

Nuget Package Source Visual Studio

Studio
  1. Download the latest NuGet executable.

  2. Open a Command Prompt and change the path to the nuget.exe location.

  3. The command from the example below stores a token in the %AppData%NuGetNuGet.config file. Your original credentials cannot be obtained from this token.

    If you are unable to connect to the feed by using encrypted credentials, try the alternative approach of storing credentials in clear text.

    If you have already stored a token instead of storing the credentials as clear text, you could update the definition in the %AppData%NuGetNuGet.config file using the following command:

Troubleshooting

Visual Studio Code NugetStudio

After changing my Telerik password, I get [Telerik Nuget] The V2 feed at '...' returned an unexpected status code '401 Logon failed.' error

Visual Studio Code Nuget Install

After changing your Telerik password, you need to reset your credentials in the NuGet.config file. To do this, run the command: