Skip to content

Commit 3798759

Browse files
committed
Update Adding license key without NuGet packages section
1 parent 5caf2c4 commit 3798759

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

licensing/license-key.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,52 @@ To activate the Telerik UI for WinForms controls:
6666

6767
When you build the project, the `Telerik.Licensing` NuGet package automatically locates the license file and uses it to activate the WinForms controls.
6868

69-
> If your project doesnt 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).
7070
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)
7272

7373
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.
7474

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:
7676

7777
1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.
7878

7979
1. On the Telerik UI for WinForms row, click the **View key** link in the **SCRIPT KEY** column.
8080

8181
![Download a Telerik UI for WinForms Script Key](./images/download-script-key.png)
8282

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`.
8486

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
90+
91+
````C#
92+
93+
[assembly: global::Telerik.Licensing.EvidenceAttribute("your-WINFORMS-script-key-here")]
94+
95+
````
96+
97+
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
100+
101+
````C#
102+
103+
[assembly: global::Telerik.Licensing.EvidenceAttribute("your-WPF-script-key-here")]
104+
[assembly: global::Telerik.Licensing.EvidenceAttribute("your-Document-Processing-script-key-here")]
105+
[assembly: global::Telerik.Licensing.EvidenceAttribute("your-REPORTING-script-key-here")]
106+
107+
````
86108

87109
>important Do not publish the license key code snippet in publicly accessible repositories. This is your personal license key.
88110
89111

90112
## Updating Your License Key
91113

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).
93115

94116
## See Also
95117

0 commit comments

Comments
 (0)