Adding License Key File (TelerikLicense) in a Managed CPP Project loading Telerik WPF Controls Module
Environment
Product | Progress® Telerik® UI for WPF |
Version | 2025.2.707 |
Description
How to add the license script key file in your project, when Telerik WPF components are loaded through a CPP/C++ project.
Solution
In this case, you should add a TelerikLicense.cs file in the C# project that defines the Telerik controls and another TelerikLicense.cpp file in the CPP project that loads the Telerik-related code.
<ClCompile Include="TelerikLicense.cpp" />
The content of the TelerikLicense.cpp file should look like this:
#include "pch.h"
using namespace Telerik::Licensing;
[assembly:EvidenceAttribute(" <my key> ")];