# Adding Your License Key to CI/CD Platforms as a Code Snippet

## Environment

| Product                         | Version          |
| ------------------------------- | ---------------- |
| Telerik UI for ASP.NET WebForms | 2025 Q1 or later |

## Description

I work in a CI/CD environment and need to activate my Telerik UI for ASP.NET AJAX license key. My projects, however, do not use NuGet packages. How can I activate the Telerik UI for ASP.NET AJAX 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](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.

2. On the Telerik UI for ASP.NET AJAX 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`.

> warning 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](https://www.telerik.com/products/aspnet-ajax/documentation/licensing/license-key)
* [License Activation Errors and Warnings](https://www.telerik.com/products/aspnet-ajax/documentation/licensing/license-errors-warnings)
* [Frequently Asked Questions about Your Telerik UI for ASP.NET AJAX License Key](https://www.telerik.com/products/aspnet-ajax/documentation/licensing/licensing-faq)
* [Adding the License Key to CI Services](https://www.telerik.com/products/aspnet-ajax/documentation/licensing/add-license-to-ci-cd)
