Set Up Private NuGet Feed for Azure
|Product||Progress® Telerik® UI for ASP.NET Core|
How can I set up the private NuGet feed in Azure to publish an ASP.NET Core application that references the Telerik UI for ASP.NET Core assembly?
Add a private NuGet feed when running an MSBuild on a build machine such as one hosted by Azure.
NuGet.configto the WebApp project in Visual Studio.
- Add a new
NuGet.configitem to the same directory as the
project.jsonfile is located.
Set your own username and password (in clear text) that are needed to log in to the Telerik site. The following example demonstrates how to do this.
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="Telerik" value="https://nuget.telerik.com/nuget/" /> </packageSources> <packageSourceCredentials> <Telerik> <add key="Username" value="firstname.lastname@example.org" /> <add key="ClearTextPassword" value="********" /> </Telerik> </packageSourceCredentials> </configuration>
Set the Build Definitions editor in Visual Studio to add a step for the NuGet installer. To achieve this:
- Select Team Explorer > Builds.
- Select Build Definitions and right-click Edit Build Definitions. This operation opens the Build Definitions in your browser, as shown in the following screenshot.
In the Build Definitions editor, add a Nuget Installer build step by clicking Add build step....
- Drag-and-drop the Nuget Installer build step to the top of the build steps list. Specify the solution and the
NugGet.configfiles and then save them.
- Save your changes to the source control for the WebApp in Visual Studio—that is, the Build Definitions and the NuGet.config file.
- To build the application, click Queue a new build.