New to Telerik UI for WPF? Start a free 30-day trial
Adding License Key File (TelerikLicense) in a Managed CPP Project loading Telerik WPF Controls Module
Updated on Jul 16, 2025
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.
xml
<ClCompile Include="TelerikLicense.cpp" />
The content of the TelerikLicense.cpp file should look like this:
cpp
#include "pch.h"
using namespace Telerik::Licensing;
[assembly:EvidenceAttribute(" <my key> ")];