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: licensing/license-key.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,30 +66,52 @@ To activate the Telerik UI for WinForms controls:
66
66
67
67
When you build the project, the `Telerik.Licensing` NuGet package automatically locates the license file and uses it to activate the WinForms controls.
68
68
69
-
> If your project doesn’t use NuGet packages, see the [next document section](#installing-a-license-key-in-projects-without-nuget-references).
69
+
> If your project doesn't use NuGet packages, see the [Adding a License Key to Projects without NuGet references](#installing-a-license-key-in-projects-by-using-telerik-assembly-references-without-nuget-packages).
70
70
71
-
## Installing a License Key in Projects without NuGet References
71
+
## Installing a License Key in Projects by Using Telerik Assembly References (without NuGet packages)
72
72
73
73
Telerik strongly recommends the use of NuGet packages whenever possible. Only include the license key as a code snippet when NuGet packages are not an option.
74
74
75
-
If you cannot use NuGet packages in your project, add the license as a code snippet:
75
+
If you add the Telerik components to your project by referencing the Telerik assemblies, you must add the license to the project as a code snippet:
76
76
77
77
1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.
78
78
79
79
1. On the Telerik UI for WinForms row, click the **View key** link in the **SCRIPT KEY** column.
80
80
81
81

82
82
83
-
1. Copy the C# code snippet into a new file, for example, `TelerikLicense.cs`.
83
+
1. A new Script Key window is shown with your C#/VB Script License Key. The code snippet from the Script Key contains an assembly attribute called EvidenceAttribute that holds information about the license key.
84
+
- For C#: Copy the C# code snippet into a new file, for example, `TelerikLicense.cs`.
85
+
- For VB: Copy the VB code snippet into a new file, for example, `TelerikLicense.vb`.
84
86
85
-
1. Add the `TelerikLicense.cs` file to your project.
87
+
1. Add the `TelerikLicense.cs` (or `TelerikLicense.vb`) file to your project.
88
+
89
+
>caption TelerikLicense.cs file example using Script Key
In case you use multiple Telerik products in the same application (e.g. Wpf, Telerik Document Processing, Telerik Reporting), you will need to add seperate license script keys for all products that you use.
98
+
99
+
>caption TelerikLicense.cs file with multiple Script Keys for different products
>important Do not publish the license key code snippet in publicly accessible repositories. This is your personal license key.
88
110
89
111
90
112
## Updating Your License Key
91
113
92
-
Whenever you purchase a new Telerik UI for WinForms license or renew an existing one, always [download a new license key](#downloading-the-license-key). The new license key includes information about all previous license purchases. This process is referred to as a license key update. Once you have the new license key, use it to [activate the components](#activating-the-telerik-ui-for-net-winforms-components).
114
+
Whenever you purchase a new Telerik UI for WinForms license or renew an existing one, always [download a new license key](#downloading-the-license-key), either automatically or manually. The new license key includes information about all previous license purchases. This process is referred to as a license key update. Once you have the new license key, use it to [activate the components](#activating-the-telerik-ui-for-net-winforms-components).
0 commit comments