We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I manually embed the licenses when developing outside of Visual Studio?

 

Unlike C# and VB.NET, the VS.NET compiler for managed C++ does not automatically embed the keys for licensed controls.

While a licenses.licx file is still created (in VS.NET 2003), the embedding of the keys requires a manual step.

Lc.exe is a .NET framework utility used to generate a *.licenses file for your application that you must then add to your project. The command line is the following:

lc /target:<YOUR filename.exe exe> /complist:licenses.licx /i:licensedassembly.dll

As an alternative to the licenses.licx file, which VS.NET 2002 does not create, you should create a text file
(which you would pass to /complist - e.g. "/complist:controls.txt") with the following format:

Syncfusion.Core.Licensing.LicensedComponent, Syncfusion.Core

For example, if the C++ project output is "cplusplus.exe" and it uses the ColorPicker from Syncfusion.Shared.Base.dll and the ChartControl from Syncfusion.Chart.Windows.dll, the command line would be:

lc /target:cplusplus.exe /complist:licenses.licx /i:Syncfusion.Core.dll

This will create a licenses file named "cplusplus.exe.licenses" that can then be added to your managed C++ application. In VS.NET, right click the project in the Solution Explorer and then select Properties->Linker->Input and then add the newly created licenses file in the entry for Embed Managed Resource File.

When you rebuild your executable, the licenses file will be embedded into it for run-time deployment.

Note: This generation is only required once for a project, provided that the licenses.licx file encompasses all necessary Syncfusion Assemblies for the project.

Article ID: Published Date: Last Revised Date: Platform: Control:
921 04/30/2011 07/10/2014 Miscellaneous Install and Configuration
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon