New to Telerik UI for .NET MAUI? Start a free 30-day trial

Installing from a Local NuGet Source

In some cases, you may want to place your Telerik UI for .NET MAUI NuGet packages in your local system storage or on a private server. This lets you control the installable versions in your development environment and also enables you to install the Telerik UI for .NET MAUI NuGet packages without internet access.

To get the NuGet package with the Telerik UI for .NET MAUI controls:

  1. Go to your Telerik account and visit the MAUI downloads.

  2. Download the Telerik.UI.for.Maui.[version].nupkg file.

To download the NuGet package with the Telerik UI for .NET MAUI controls, you need an active trial or commercial license.

To set up a local NuGet source, you can use either of the following methods:

Setting Up a Local NuGet Source in Visual Studio

To configure a local NuGet source in Visual Studio:

  1. Open Visual Studio.
  2. Go to Tools > NuGet Package Manager > Package Manager Settings
  3. Select Package Sources, and then click the + button.
  4. In the Source field, add the path to the downloaded NuGet package or the URL for your private server.
  5. Click Update and then OK.

    Package Sources field with the checked Telerik NuGet option

Setting Up the NuGet Source in NuGet.Config

An alternative way to configure your system to use locally available NuGet files is to directly edit the nuget.config file:

  1. Go to the NuGet.Config file:

    • On Windows, open the %AppData%\NuGet\NuGet.Config file.
    • On Mac, open either the ~/.config/NuGet/NuGet.Config or ~/.nuget/NuGet/NuGet.Config file (varies by tooling).

      If the file doesn't exist on your machine, create it by running the dotnet new nugetconfig command in the terminal. For more information about the command, see Microsoft's docs.

  2. Add the path or URL to the NuGet file containing the Telerik UI for .NET MAUI library. Here is an example of how your config file can look like:

<?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="add the path to the local package" />
    </packageSources>
</configuration>

The local NuGet package does not require you to configure the authentication in the NuGet.Config file as it has already been downloaded from your Telerik account.

For more details about the NuGet.Config file, see the following Microsoft resources:

See Also

In this article