Skip to content

Commit 58f0d87

Browse files
dimodiyordan-mitev
andauthored
docs(Common): Add TelerikLicensingStrict to license warnings as errors (#3015)
* docs(Common): Add TelerikLicensingStrict to license warnings as errors * Update deployment/ci-cd-license-key.md Co-authored-by: Yordan <[email protected]> --------- Co-authored-by: Yordan <[email protected]>
1 parent 331211b commit 58f0d87

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

deployment/ci-cd-license-key.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ Also see [Using NuGet Keys](slug:deployment-nuget#using-nuget-keys) in the artic
136136
137137
To avoid accidental [license watermarks and notifications on your live site](slug:installation-license-key#will-telerik-ui-for-blazor-work-with-an-expired-license-key), you can fail the application build and abort deployment when there is an issue with the license key. There are two alternative ways to list the [Telerik license warning codes](slug:troubleshooting-license-key-errors#error-messages) to be treated as errors:
138138
139+
* Add а `<TelerikLicensingStrict>` tag to the `.csproj` project file. This approach requires Telerik UI for Blazor version `9.0.0` and above, or `Telerik.Licensing` version `1.6.5` and above.
140+
````XML.skip-repl
141+
<PropertyGroup>
142+
<TargetFramework>net8.0</TargetFramework>
143+
<Nullable>enable</Nullable>
144+
<ImplicitUsings>enable</ImplicitUsings>
145+
<TelerikLicensingStrict Condition="$(Configuration) == 'Release'">true</TelerikLicensingStrict>
146+
</PropertyGroup>
147+
````
148+
139149
* [Add a `<WarningsAsErrors>` tag](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/errors-warnings#warningsaserrors-and-warningsnotaserrors) to the `.csproj` project file:
140150
````XML.skip-repl
141151
<PropertyGroup>

0 commit comments

Comments
 (0)