-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMyWWLicense.cs
25 lines (25 loc) · 1.28 KB
/
MyWWLicense.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace WW {
public static class MyWWLicense {
public static void Set() {
// For this application to work you will need a trial license.
// The MyAppKeyPair.snk linked in the project is not present in the repository,
// you should generate your own strong name key and keep it private.
//
// 1) You can generate a strong name key with the following command in the Visual Studio command prompt:
// sn -k MyKeyPair.snk
//
// 2) The next step is to extract the public key file from the strong name key (which is a key pair):
// sn -p MyKeyPair.snk MyPublicKey.snk
//
// 3) Display the public key token for the public key:
// sn -t MyPublicKey.snk
//
// 4) Go to the project properties Signing tab (or Build -> signing in VS2022),
// and check the "Sign the assembly" checkbox, and choose the strong name key you created.
//
// 5) Register and get your trial license from https://www.woutware.com/SoftwareLicenses.
// Enter your strong name key public key token that you got at step 3.
WW.WWLicense.SetLicense("<license string>");
}
}
}