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
N> * Place the license key between double quotes. Also, ensure that Syncfusion.Licensing.dll is referenced in your project where the license key is being registered.
21
21
* Syncfusion license validation is done offline during application execution and does not require internet access. Apps registered with a Syncfusion license key can be deployed on any system that does not have an internet connection.
22
22
23
+
I> Syncfusion license keys can be validated during the Continuous Integration (CI) processes to ensure proper licensing and prevent licensing errors during deployment. Refer to the [CI License Validation] (https://help.syncfusion.com/wpf/licensing/licensing-faq/ci-license-validation) section for detailed instructions on how to implement it.
24
+
23
25
### WPF
24
26
25
27
You can register the license key in App constructor of **App.xaml.cs** in C#. If App constructor not available in **App.xaml.cs**, create the "App()" constructor in **App.xaml.cs** and register the license key inside the constructor. In Visual Basic, register the license code in **App.xaml.vb**.
# Syncfusion license key validation in CI services
21
21
22
-
Syncfusion license key validation in CI services ensures that Syncfusion Essential Studio components are properly licensed during CI processes. Validating the license key at the CI level can prevent licensing errors during deployment. The following section shows how to validate the Syncfusion license key in CI services.
22
+
Syncfusion license key validation in CI services ensures that Syncfusion Essential Studio components are properly licensed during CI processes. Validating the license key at the CI level can prevent licensing errors during deployment. Set up the continuous integration process to fail in case the license key validation fails. Validate the passed parameters and the registered license key again to resolve the issue.
23
+
24
+
The following section shows how to validate the Syncfusion license key in CI services.
23
25
24
26
* Download and extract the LicenseKeyValidator.zip utility from the following link: [LicenseKeyValidator](https://s3.amazonaws.com/files2.syncfusion.com/Installs/LicenseKeyValidation/LicenseKeyValidator.zip).
25
27
@@ -45,7 +47,8 @@ Syncfusion license key validation in CI services ensures that Syncfusion Essenti
45
47
46
48
The following example shows the syntax for Windows build agents.
47
49
48
-
```bash
50
+
{% tabs %}
51
+
{% highlight <lang> tabtitle ="YAML" %}
49
52
pool:
50
53
vmImage: 'windows-latest'
51
54
@@ -57,7 +60,8 @@ steps:
57
60
filePath: $(LICENSE_VALIDATION) #Or the actual path to the LicenseKeyValidation.ps1 script.
58
61
59
62
displayName: Syncfusion License Validation
60
-
```
63
+
{% endhighlight %}
64
+
{% endtabs %}
61
65
62
66
## Azure Pipelines (Classic)
63
67
@@ -73,13 +77,15 @@ steps:
73
77
74
78
The following example shows the syntax for validating Syncfusion license key in GitHub actions.
@@ -89,7 +95,8 @@ The following example shows the syntax for validating Syncfusion license key in
89
95
90
96
The following example shows the syntax for validating Syncfusion license key in Jenkins pipeline.
91
97
92
-
```bash
98
+
{% tabs %}
99
+
{% highlight json %}
93
100
pipeline {
94
101
agent any
95
102
environment {
@@ -103,14 +110,27 @@ pipeline {
103
110
}
104
111
}
105
112
}
106
-
```
113
+
{% endhighlight %}
114
+
{% endtabs %}
107
115
108
116
## Validate the License Key Using ValidateLicense() Method
109
117
110
118
* Register the license key properly by calling RegisterLicense("License Key") method with the license key.
111
119
112
120
* Once the license key is registered, it can be validated by using ValidateLicense("Platform.WPF") method. This ensures that the license key is valid for the platform and version you are using. For reference please check the following example.
0 commit comments