LicenseGenWrapper.dll is a .NET library which wraps the native
command line tool LicenseGen.exe. This easy to use library enables
you quick and comfortable access to LicenseGen.exe without using
command line parameters.
How To Example Code:
Reference Namespace of
LicenseGenWrapper.dll
using LicenseGenWrapper;
/*** Create a License File ***/
public void CreateLicenseFile()
{
LicenseGenWrapper.LicenseGen licensegen = new LicenseGenWrapper.LicenseGen();
licensegen.ProjectFile = @"C:\MyProject\myproj.nrproj";
licensegen.AdditonalLicenseInformation.Add("Name", "John Doe");
licensegen.AdditonalLicenseInformation.Add("Company", "CompanyXY Limited");
licensegen.HardwareLock_Enabled = true;
licensegen.HardwareID = "1234-1234-1234-1234-1234";
licensegen.CreateLicenseFile(@"C:\MyProject\newlicense.license");
}
|