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 |
Product | Version |
---|---|
Telerik UI for .NET MAUI | 2025 Q1 or later |
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?
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:
-
Go to the License Keys page in your Telerik account.
-
On the Telerik UI for .NET MAUI row, click the View key link in the SCRIPT KEY column.
-
Create a new environment variable or repository secret and add the script key as a value.
-
Add a build task that creates a new
TelerikLicense.cs
file and writes the script key as file content by using the environment variable. -
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.
- [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%})