Skip to content

Commit 01347aa

Browse files
committed
kb(licensing): add article for activating license for non nuget projects
1 parent 18e9e63 commit 01347aa

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Adding Your License Key to CI/CD Platforms as a Code Snippet
3+
description: Learn how to add your Telerik UI for ASP.NET AJAX license as a code snippet in CI/CD environments.
4+
type: how-to
5+
page_title: Adding Your License Key to CI/CD Platforms as a Code Snippet
6+
slug: licensing-add-license-as-snippet-ci-cd
7+
tags: common, asp, net, webforms, ci, cd, code, snippet
8+
res_type: kb
9+
---
10+
11+
## Environment
12+
13+
| Product | Version
14+
| ---- | ---- |
15+
| Telerik UI for ASP.NET WebForms | 2025 Q1 or later |
16+
17+
## Description
18+
19+
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?
20+
21+
## Solution
22+
23+
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:
24+
25+
1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.
26+
27+
1. On the Telerik UI for ASP.NET AJAX row, click the **View key** link in the **SCRIPT KEY** column.
28+
29+
1. Create a new environment variable or repository secret and add the script key as a value.
30+
31+
1. Add a build task that creates a new `TelerikLicense.cs` file and writes the script key as file content by using the environment variable.
32+
33+
1. Add a reference to the `Telerik.Licensing.Runtime.dll`.
34+
35+
>warning Do not publish the script license key snippet in publicly accessible repositories. This is your personal license key.
36+
37+
38+
## See Also
39+
40+
* [Setting Up Your License Key]({%slug licensing/license-key%})
41+
* [License Activation Errors and Warnings]({%slug licensing/license-errors-warnings%})
42+
* [Frequently Asked Questions about Your Telerik UI for ASP.NET AJAX License Key]({%slug licensing/licensing-faq%})
43+
* [Adding the License Key to CI Services]({%slug licensing/add-license-to-ci-cd%})

0 commit comments

Comments
 (0)