Installing with NuGet in Visual Studio
To install the Telerik UI for .NET MAUI components, you can use the NuGet packages hosted on the public Telerik NuGet server. This online source lets you download and install various versions of the .NET MAUI controls and enables quick updates with minimal manual intervention.
Before adding the Telerik NuGet server to Visual Studio, make sure you have:
- .NET MAUI installed on the machine. For more information on the required steps and system requirements, refer to the official Microsoft .NET MAUI documentation.
- A commercial or trial license for Telerik .NET MAUI. Note that the Telerik NuGet server requires authentication and checks if you have a valid license.
Step 1: Add the Telerik NuGet Package Source to Visual Studio
To configure the Telerik NuGet feed in Visual Studio:
- Open Visual Studio.
- Go to Tools > NuGet Package Manager > Package Manager Settings.
- Select Package Sources, and then click the + button.
- In the Source field, enter
https://nuget.telerik.com/v3/index.json
. If you use a locally available NuGet package downloaded from your account, add the path to the local package instead of the URL. -
Click Update and then OK.
You have successfully added the Telerik NuGet feed as a Package source.
Step 2: Install the Telerik UI for .NET MAUI NuGet Package
The next steps describe how to authenticate your local NuGet instance and display the available packages:
- Create a new .NET MAUI project or open an existing project.
- Right-click the solution in the Solution Explorer window.
- Select Manage NuGet Packages for Solution....
- Select the Telerik NuGet Package source from the drop-down list.
- Click the Browse tab to see the available packages.
- Enter your Telerik credentials in the Windows Authentication dialog.
- In the Visual Studio Package Manager, you will see all packages that are licensed to your user account.
- Search for the
Telerik.UI.for.Maui
orTelerik.UI.for.Maui.Trial
package and select it. - Choose the projects which require the package.
- Select the desired version and click Install.
Step 3: Register the Required Handlers
To visualize the .NET MAUI controls, you have to register the required handlers by calling the Telerik.Maui.Controls.Compatibility.UseTelerik
extension method inside the Configure
method of the MauiProgram.cs
file of your project.
-
Add the needed
using
settings inside theMauiProgram.cs
file.using Telerik.Maui.Controls.Compatibility;
-
Call the
UseTelerik()
method inside theMauiProgram.cs
file.public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseTelerik() .UseMauiApp<App>() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); }); return builder.Build(); } }
See Also