Activating a license

To activate a license, follow the steps below:

  1. In Visual Studio, create a new project or open the code of your existing application. For more information on creating a new project, see the Microsoft documentation(opens in a new tab). It’s recommended to create a project that runs on .NET 6.0 or newer.
  2. Create a LicenseManager object in the code file where the application loads before using any of the methods of Nutrient .NET SDK (formerly GdPicture.NET).
  3. Pass the license key to the RegisterKEY method of the LicenseManager object.
  4. Repeat this process for all the code files where you use Nutrient .NET SDK.
LicenseManager licenseManager = new LicenseManager();
licenseManager.RegisterKEY("LICENSE_KEY");