TX Text Control .NET for WPF

Application Licensing

Topic

Once built, a WPF application with TX Text Control carries its license inside one of its assemblies. The machines it is deployed to need no serial number, no license file, no activation and no runtime license, and you pay no royalties for them. The work lies before the release: the build must contain the full license in the assembly where TX Text Control looks for it, and none of your licensing information may end up in the files you ship.

The License in the Deployed Application

ProjectThe license is compiled fromOn the user's machine
.NET 8 or highertxtextcontrol.wpf.license, added by the package TXTextControl.TextControl.WPF.SDK and embedded at build timeNothing to install
.NET FrameworkThe entries of licenses.licx, compiled by the license compilerNothing to install

When the TextControl is created, TX Text Control looks for the license in the executable assembly of the application. A WPF user control library or a class library that holds the license names itself with TextControl.EntryAssembly or ServerTextControl.EntryAssembly. Application Licensing in the Installation Guide shows both in code.

Deployed applications are royalty-free, on any number of machines and for any number of users. The conditions are summarized in Royalty-Free Distribution.

Before You Release

  1. Build with the full version. A trial version is for evaluation only, may not be distributed in a commercial application and stops working after 30 days.
  2. Check the edition. Features outside your edition throw a LicenseLevelException. Check the Edition at Run Time shows how to display the edition the application runs with, or whether it runs as a trial.
  3. Name the assembly with the license. In a library, set EntryAssembly before InitializeComponent creates the first TextControl.
  4. Leave assembly names alone after the build. The license is tied to the assembly it was compiled into, and a renamed file doesn't find it. Rename the assembly in the project properties and rebuild, as User Controls and Class Libraries explains.
  5. Let a licensed developer or a build server build it. A build server needs no license of its own, as Build Servers explains.

What Stays Out of the Installer

The license agreement forbids passing licensing information to the users of your application. Check that your installer, MSIX package or deployment script contains none of the following:

  • txtextcontrol.wpf.license, which holds encrypted serial number information unique to your installation
  • Serial numbers, license keys or other licensing credentials
  • A nuget.config with the email address and API token of the Text Control Private NuGet Feed
  • licenses.licx, which the license compiler of a .NET Framework project reads during the build
  • The NuGet package or the setup of TX Text Control, which deliver the files at build time only
  • TX Text Control in a form that lets your users create their own TX Text Control applications, or a wrapper library sold as a product of its own

The publish folder and the build output don't contain these files. They only get into a deployment when a script or an installer copies them from the project.