Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.81 KB

add-license-as-snippet-ci-cd.md

File metadata and controls

42 lines (28 loc) · 1.81 KB
title description type page_title slug tags res_type
Adding Your License Key to CI/CD Platforms as a Code Snippet
Learn how to add your Telerik UI for .NET MAUI license as a code snippet in CI/CD environments.
how-to
Adding Your License Key to CI/CD Platforms as a Code Snippet
add-license-as-snippet-ci-cd
.net maui, cd, cd, code, snippet
kb

Environment

Product Version
Telerik UI for .NET MAUI 2025 Q1 or later

Description

I work in a CI/CD environment and need to activate my Telerik UI for .NET MAUI license key. My projects, however, do not use NuGet packages. How can I activate the Telerik UI for .NET MAUI without using the Telerik.Licensing package?

Solution

Telerik strongly recommends the use of NuGet packages whenever possible. If NuGet is not an option, configure your CI/CD tools to create a C# license file during build:

  1. Go to the License Keys page in your Telerik account.

  2. On the Telerik UI for .NET MAUI row, click the View key link in the SCRIPT KEY column.

  3. Create a new environment variable or repository secret and add the script key as a value.

  4. Add a build task that creates a new TelerikLicense.cs file and writes the script key as file content by using the environment variable.

  5. Add a reference to the Telerik.Licensing.Runtime.dll.

Do not publish the script license key snippet in publicly accessible repositories. This is your personal license key.

See Also

  • [Setting Up Your License Key]({%slug set-up-your-license%})
  • [License Activation Errors and Warnings]({%slug license-errors-warnings%})
  • [Frequently Asked Questions about Your Telerik UI for .NET MAUI License Key]({%slug licensing-faq%})
  • [Adding the License Key to CI Services]({%slug add-license-to-ci-cd%})