You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _contentTemplates/common/general-info.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
#end
4
4
5
5
#ensure-nuget-packge-for-upgrade
6
-
Make sure that you have a NuGet feed source with the version you want to upgrade to. This is usually the [Telerik NuGet Feed](slug://installation/nuget), but you can also use a local feed from [our MSI installer](slug://installation/msi) or [ZIP archive](slug://installation/zip).
6
+
Make sure that you have a NuGet feed source with the version you want to upgrade to. This is usually the [Telerik NuGet Feed](slug://installation/nuget), but you can also use a local feed from [our MSI installer](slug://installation-msi) or [ZIP archive](slug://installation-zip).
7
7
#end
8
8
9
9
#date-format-per-culture
@@ -15,7 +15,7 @@ The `Format` is culture-specific and the same format may produce different resul
15
15
You can get the extension from:
16
16
17
17
* The Visual Studio Marketplace (for [Visual Studio 2022 for Windows](https://marketplace.visualstudio.com/items?itemName=TelerikInc.ProgressTelerikBlazorVSExtensions) and [Visual Studio 2019 for Windows](https://marketplace.visualstudio.com/items?itemName=TelerikInc.TelerikBlazorVSExtensions)).
18
-
* The [Telerik UI for Blazor automated installer](slug://installation/msi) (for Windows and Mac).
18
+
* The [Telerik UI for Blazor automated installer](slug://installation-msi) (for Windows and Mac).
19
19
* Your [Telerik.com account](https://www.telerik.com/account/product-download?product=BLAZOR) (for Mac only). Download the `.mpack` file and use the "Install from file..." button on the Visual Studio Extensions dialog.
20
20
21
21
> Our extention for Visual Studio for Mac will be discontinued in 2024 [after Visual Studio for Mac is discontinued](https://learn.microsoft.com/en-us/visualstudio/mac/what-happened-to-vs-for-mac).
@@ -131,5 +131,5 @@ Visit [status.telerik.com](https://status.telerik.com) to check the status of th
131
131
132
132
133
133
#ci-cd-support
134
-
> All deployment articles in this documentation provide general guidance and fundamentals. Telerik does not provide technical support for setting up CI/CD environments or application publishing infrastructure.
134
+
> The deployment articles in this documentation provide general guidance and fundamentals. Telerik does not provide technical support for setting up CI/CD environments or application publishing infrastructure, except for questions about [using Telerik license keys](slug://deployment-license-key).
Copy file name to clipboardExpand all lines: _contentTemplates/common/get-started.md
+34-2Lines changed: 34 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
## Step 0: Download Telerik UI for Blazor
15
15
16
-
* If you have already purchased a Telerik UI for Blazor license, continue with the [next step and create a new project](#step-1-create-a-new-project).
16
+
* If you have already purchased a Telerik UI for Blazor license, continue with the [next step and install a license key](#step-1-install-a-license-key).
17
17
18
18
* If you are new to UI for Blazor and haven't purchased a license yet, you must <ahref="https://www.telerik.com/download-trial-file/v2-b/ui-for-blazor"target="_blank">download and install the trial version</a> of the UI for Blazor components—this will activate your free trial and allow you to use the components. During the installation, select the **Set up Telerik NuGet package source** checkbox and the installer will configure the Telerik [online NuGet feed](slug://installation/nuget) automatically. You will use this feed later in the tutorial.
19
19
@@ -23,7 +23,7 @@
23
23
24
24
25
25
#add-nuget-feed
26
-
## Step 2: Add the Telerik NuGet Feed to Visual Studio
26
+
## Step 3: Add the Telerik NuGet Feed to Visual Studio
27
27
28
28
In this tutorial, you will use the [Telerik NuGet feed](slug://installation/nuget) to download the UI for Blazor components. This NuGet feed is private and requires you to authenticate with your Telerik user name and password:
29
29
@@ -179,3 +179,35 @@ You can learn more about the [`TelerikRootComponent` purpose and usage](slug://r
179
179
}
180
180
</style>
181
181
#end
182
+
183
+
#license-key-version
184
+
185
+
>tip This documentation section applies to Telerik UI for Blazor version **7.2.0** and above. Older versions do not require a license key.
186
+
187
+
#end
188
+
189
+
#license-key-update-whenever
190
+
191
+
>tip Update your license key [whenever you renew or purchase a new Telerik license](slug://installation-license-key#license-key-updates).
192
+
193
+
#end
194
+
195
+
#license-key-manual-steps
196
+
197
+
To download and install your Telerik license key:
198
+
199
+
1. Go to the <ahref="https://www.telerik.com/account/your-licenses/license-keys"target="_blank">License Keys page</a> in your Telerik account.
200
+
1. Click the **Download License Key** button.
201
+
1. Save the `telerik-license.txt` file to:
202
+
* (on Windows) `%AppData%\Telerik\telerik-license.txt`, for example, `C:\Users\...\AppData\Roaming\Telerik\telerik-license.txt`
203
+
* (on Mac or Linux) `~/.telerik/telerik-license.txt`, for example, `/Users/.../.telerik/telerik-license.txt`
204
+
205
+
This will make the license key available to all Telerik .NET apps that you develop on your local machine.
206
+
207
+
#end
208
+
209
+
#license-key-know-more-link
210
+
211
+
The [Telerik License Key](slug://installation-license-key) article provides additional details on installing and updating your Telerik license key in different scenarios. [Automatic license key maintenance](slug://installation-license-key#automatic-installation) is more effective and recommended in the long run.
Copy file name to clipboardExpand all lines: _contentTemplates/common/issues-and-warnings.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,7 @@ Open the Client `.csproj` file and ensure that the following switch is present.
27
27
You may find useful the following Microsoft articles on securing your NuGet feed setup and supply chain as general best practices:
28
28
29
29
* <ahref="https://devblogs.microsoft.com/nuget/lock-down-your-dependencies-using-configurable-trust-policies/"target="_blank">Lock down your dependencies using configurable trust policies - Blog Post</a>
30
-
31
30
* <ahref="https://devblogs.microsoft.com/nuget/how-to-scan-nuget-packages-for-security-vulnerabilities/"target="_blank">How to Scan NuGet Packages for Security Vulnerabilities - Blog Post</a>
32
-
33
31
* <ahref="https://docs.microsoft.com/en-us/nuget/concepts/security-best-practices"target="_blank">Best practices for a secure software supply chain - MSDN docs</a>
34
32
35
33
Telerik provides signed NuGet packages that you can verify.
Copy file name to clipboardExpand all lines: common-features/data-binding/telerik-datasource-package.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In this article:
25
25
26
26
## Basics
27
27
28
-
The `Telerik.DataSource` package is distributed through the [Telerik NuGet package source](slug://installation/nuget) and is available to both trial and commercial licenses. It is also available as a resource in the [offline installer](slug://installation/msi) and [resources archive](slug://installation/zip) of Telerik UI for Blazor and some other Telerik suites, such as UI for ASP.NET Core.
28
+
The `Telerik.DataSource` package is distributed through the [Telerik NuGet package source](slug://installation/nuget) and is available to both trial and commercial licenses. It is also available as a resource in the [offline installer](slug://installation-msi) and [resources archive](slug://installation-zip) of Telerik UI for Blazor and some other Telerik suites, such as UI for ASP.NET Core.
29
29
30
30
The `Telerik.DataSource` package targets `netstandard2.1`.
Copy file name to clipboardExpand all lines: components/grid/data-binding.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ The following list of resources provides examples for data binding a grid in var
33
33
34
34
***Optimizing the data source queries** - see the [Notes](slug://components/grid/columns/bound#notes) section in the article above. In a server-side app, an `IQueryable` that ties to an appropriate context (such as EntityFramework) that can optimize the LINQ queries the grid generates is a quick option. For full control, use the [OnRead event](slug://components/grid/manual-operations).
35
35
36
-
***SQL** (or any other) **database** - you can find examples in our [online demos](https://demos.telerik.com/blazor-ui/grid/overview). You can see an offline version of the demos project in the `demos` folder of your installation ([automated](slug://installation/msi) or [archive](slug://installation/zip)). They showcase an EntityFramework context using an SQL database that provides data to a grid through a service, which is a common architecture for decoupling the front-end from the actual data source that you can apply to any database.
36
+
***SQL** (or any other) **database** - you can find examples in our [online demos](https://demos.telerik.com/blazor-ui/grid/overview). You can see an offline version of the demos project in the `demos` folder of your installation ([automated](slug://installation-msi) or [archive](slug://installation-zip)). They showcase an EntityFramework context using an SQL database that provides data to a grid through a service, which is a common architecture for decoupling the front-end from the actual data source that you can apply to any database.
37
37
38
38
* The **CRUD sample project** our extensions for [Visual Studio](slug://getting-started-vs-integration-new-project) and [Visual Studio Code](slug://getting-started-vs-code-integration-overview) can generate for you showcases a similar architecture that you can use as a starting point.
Copy file name to clipboardExpand all lines: deployment/ci-cd-build-server.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,9 @@ position: 5
12
12
13
13
This article explains some concepts and how to troubleshoot the most common errors related to setting up the Telerik NuGet packages for automated builds, CI and CD.
14
14
15
-
Sections in this article:
15
+
> To successfully set up a CI/CD environment for Telerik Blazor apps, also refer to the article about [Telerik license keys in CI/CD](slug://deployment-license-key).
@@ -29,7 +30,7 @@ There are a couple of common ways people implement CI/CD automated builds.
29
30
30
31
* You can [restore the Telerik NuGet packages](slug://deployment-nuget) by downloading them from the Telerik NuGet server. You can achieve this by using the more secure token-based authentication with the Telerik NuGet server. If you prefer the basic authentication with a username and password, you can use your own credentials (or the credentials of the license holder, depending on how your licenses are set up) in the `NuGet.Config` of the build machine/pipeline. In this case, make sure that your credentials are encrypted when you add the Telerik feed source through the CLI. Alternatively, you can copy an encrypted version from your own local config if you have one and if plain text is an issue. See more on setting up the [Telerik NuGet package source](slug://installation/nuget).
31
32
32
-
* Creating a local folder (for example, on a shared network drive or other suitable location accessible only by your builds and team) that holds the `.nupkg` files we provide (you can download them from your telerik.com account, or from your local installation - both [automated](slug://installation/msi) and from the [zip archive](slug://installation/zip)).
33
+
* Creating a local folder (for example, on a shared network drive or other suitable location accessible only by your builds and team) that holds the `.nupkg` files we provide (you can download them from your telerik.com account, or from your local installation - both [automated](slug://installation-msi) and from the [zip archive](slug://installation-zip)).
33
34
34
35
You must protect your credentials and/or the Telerik packages and ensure they are used only by you and not by other developers, according to the [license-per-developer policy](https://www.telerik.com/purchase/license-agreement/blazor-ui). As long as your credentials are obfuscated/masked, they can be used by your colleagues (e.g. developers, QAs, designers, front-end devs, DBAs, etc.) for building and running a solution, provided they do not use the Telerik components to create functionality. Most importantly, you must ensure that such credentials or package sources are not available to the general public (for example, in public repositories).
35
36
@@ -39,25 +40,19 @@ You must protect your credentials and/or the Telerik packages and ensure they ar
39
40
When using Azure pipelines, we encourage you to review the following resources on setting things up:
40
41
41
42
* Blog post: [Azure DevOps and Telerik NuGet Packages](https://www.telerik.com/blogs/azure-devops-and-telerik-nuget-packages)
42
-
43
43
* Sample Repo and Video Tutorial: [Telerik DevOpsExamples by Lance McCarthy](https://github.com/LanceMcCarthy/DevOpsExamples)
44
44
45
-
>caption There are a couple of common questions and issues:
45
+
There are a couple of common questions and issues:
46
46
47
47
* Obtaining credentials - see the points above for either using your own credentials, or using a shared package source.
48
-
49
48
* Telerik feed not being found - the most common reason for a problem is that the path to the `NuGet.Config` file is wrong (it should, by default, be at the root level).
50
-
51
49
* An `index.json not found` error can occur from many root causes. If you have successfully authenticated, this error usually means that the feed wasn't able to be searched or connected to. A common reason is an incorrect feed URL, such as including a trailing slash - Correct: `https://nuget.telerik.com/v3/index.json` and Incorrect: `https://nuget.telerik.com/v3/index.json/`.
52
50
53
-
>caption A few things to double check to ensure correct setup:
51
+
A few things to double check to ensure correct setup:
54
52
55
53
* The Service connection is using Basic Authentication and the URL is correct (`https://nuget.telerik.com/v3/index.json` exactly, no trailing slash).
56
-
57
54
* That Service Connection is selected as the credentials source.
58
-
59
55
* The credentials being used have a UI for Blazor license.
60
-
61
56
* Make sure that you use `dotnet restore` and not `nuget restore` in your pipeline step.
62
57
63
58
@@ -75,8 +70,8 @@ jobs:
75
70
runs-on: windows-latest
76
71
77
72
env:
78
-
TELERIK_USERNAME: ${ { secrets.MyTelerikAccountUsername } } # remove the space between the brackets
79
-
TELERIK_PASSWORD: ${ { secrets.MyTelerikAccountPassword } } # remove the space between the brackets
73
+
TELERIK_USERNAME: ${ { secrets.MyTelerikAccountUsername } } # remove the spaces between the brackets
74
+
TELERIK_PASSWORD: ${ { secrets.MyTelerikAccountPassword } } # remove the spaces between the brackets
description: Learn how to create and install a Telerik license key file in continuous integration and continuous delivery (CI/CD) workflows and environments.
5
+
slug: deployment-license-key
6
+
tags: installation, license, deployment
7
+
published: True
8
+
position: 7
9
+
---
10
+
11
+
# Telerik License Key in CI/CD Environment
12
+
13
+
This article describes how to set up and activate your [Telerik UI for Blazor license key](slug://installation-license-key) across a few popular CI/CD services by using environment variables.
When working with CI/CD platforms, always add the [`Telerik.Licensing` NuGet package](slug://getting-started/what-you-need#nuget-packages) as a project dependency. This package activates the Telerik Blazor components at build time by using the provided license key.
20
+
21
+
The license activation process in a CI/CD environment involves the following steps:
22
+
23
+
1. Add the `Telerik.Licensing` NuGet package as a dependency to all projects that reference Telerik UI for Blazor or Telerik Document Processing:
1. Go to the <a href="https://www.telerik.com/account/your-licenses/license-keys" target="_blank">License Keys page</a> in your Telerik account and get your license key.
28
+
1. Set your license key value as an environment variable with a name `TELERIK_LICENSE`.
29
+
30
+
## Creating Environment Variables
31
+
32
+
The recommended way to provide your license key to the `Telerik.Licensing` NuGet package in CI/CD environment is to use environment variables. Each CI/CD platform has a different process for setting environment variables. This article lists only some of the most popular examples.
33
+
34
+
### Azure Pipelines (YAML)
35
+
36
+
1. Create a new <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch" target="_blank">user-defined variable</a> named `TELERIK_LICENSE`.
37
+
1. Paste the contents of the license key file as a value.
38
+
39
+
### Azure Pipelines (Classic)
40
+
41
+
1. Create a new <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch" target="_blank">user-defined variable</a> named `TELERIK_LICENSE`.
42
+
1. Paste the contents of the license key file as a value.
43
+
44
+
### GitHub Actions
45
+
46
+
1. Create a new <a href="https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository" target="_blank">Repository Secret</a> or an <a href="https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization" target="_blank">Organization Secret</a>.
47
+
1. Set the name of the secret to `TELERIK_LICENSE` and paste the contents of the license file as a value.
48
+
1. After running `npm install` or `yarn`, add a build step to activate the license:
49
+
````YAML
50
+
env:
51
+
TELERIK_LICENSE: ${ { secrets.TELERIK_LICENSE } } # remove the spaces between the brackets
52
+
````
53
+
54
+
### Docker
55
+
56
+
1. [Create a Docker build secret](https://docs.docker.com/build/building/secrets/#using-build-secrets) that holds the Telerik license key file.
57
+
1. [Mount the secret](https://docs.docker.com/build/building/secrets/#secret-mounts) and set a `TELERIK_LICENSE` [environment variable in the container](https://docs.docker.com/build/building/secrets/#target).
58
+
59
+
## Next Steps
60
+
61
+
* [Restore Telerik NuGet Packages in CI/CD Workflows](slug://deployment-nuget)
@@ -27,6 +23,9 @@ Refer to the Microsoft Blazor deployment documentation and make sure you can dep
27
23
*[Host and deploy Blazor Server apps](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/server)
28
24
*[Host and deploy Blazor WebAssembly apps](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly)
29
25
26
+
## License Key
27
+
28
+
Before building a Telerik Blazor app in a CI/CD environment, [set up a Telerik license key in CI/CD](slug://deployment-license-key). The process is different than in a [local development environment](slug://installation-license-key).
0 commit comments