4.3 KiB
title | page_title | description | slug | tags | published | position |
---|---|---|---|---|---|---|
Telerik Private NuGet Feed | Telerik NuGet Feed | How to use the Telerik Private NuGet Feed | installation/nuget | get,started,installation,nuget,feed | True | 1 |
Telerik Private NuGet Feed
This article explains how to add the private Telerik NuGet feed to your system. You can use it to obtain the Telerik UI for Blazor components.
tip Once you have the feed working, you can add the Telerik components to your project - both client-side Blazor and server-side Blazor. You can also find more details in the What You Need article.
Add the Telerik Private NuGet Feed to Your System
To add the Telerik private NuGet feed, follow the steps below:
- Download the latest NuGet executable. If you cannot use the
exe
(for example on Mac or Linux), you can use a nuget.config file. - Open a Command Prompt and change the path to where the
nuget.exe
is downloaded. - Execute the command from the example below.
Store Credentials in Clear Text for the Telerik NuGet feed
The command from the example below stores the password in clear text in the %AppData%\NuGet\NuGet.config
file. If you are unable to connect to the feed using encrypted credentials, use this alternative approach.
caption Store Plain-text Credentials for the Telerik NuGet feed
NuGet Sources Add -Name "telerik.com" -Source "https://nuget.telerik.com/nuget" ^
-UserName "your login email" -Password "your password" ^
-StorePasswordInClearText
If you have already stored a token instead of storing the credentials as clear text, update the definition in the %AppData%\NuGet\NuGet.config
file by using the command below.
caption Update Plain-text Credentials for the Telerik NuGet feed
NuGet Sources Update -Name "telerik.com" -Source "https://nuget.telerik.com/nuget" ^
-UserName "your login email" -Password "your password" ^
-StorePasswordInClearText
Store Encrypted Credentials
The ASP.NET Core tooling does not fully support encrypted credentials.
Nuget Config File
NuGet feeds and other settings can be stored in a nuget.config
file. You can read more about it in the Nuget Config File - Package Sources article.
Make sure you are familiar with how such configurations work. The Common NuGet Configurations article is a reference document you can use.
To use a nuget.config
file for the Telerik feed, you need to:
-
Ensure you have the relevant config file:
%AppData%\NuGet\NuGet.Config
. You can create a new one by via the dotnet new command by callingdotnet new nugetconfig
. -
Add the Telerik feed to it, and make sure to use plain-text credentials, because the .NET Core tooling does not fully support encypted credentials. Here is an example of how your config file can look like:
nuget.config
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <!--To inherit the global NuGet package sources remove the <clear/> line below --> <clear /> <add key="nuget" value="https://api.nuget.org/v3/index.json" /> <add key="telerik" value="https://nuget.telerik.com/nuget" /> </packageSources> <packageSourceCredentials> <telerik> <add key="Username" value="your telerik account email" /> <add key="ClearTextPassword" value="your plain text password" /> </telerik> </packageSourceCredentials> </configuration>
Next Steps
See Also
- [What You Need To Install]({%slug getting-started/what-you-need%})
- [Get Started with Client-side Blazor]({%slug getting-started/client-side%})
- [Get Started with Server-side Blazor]({%slug getting-started/server-side%})