In This Topic
This topic applies to licensing UWP, Xamarin, Web API and ASP.NET Core MVC applications.
Note: Prior to the ComponentOne 2020 v2 release (July 2020), UWP, Xamarin, Web API and ASP.NET Core MVC application licensing required a unique runtime app key. It's recommended to update to the latest version for much easier licensing. For newer versions, see Licensing Applications.
The runtime app key can be generated through Visual Studio or developer.MESCIUS.com.
Create Runtime App Key Through Visual Studio
- From the Tools menu, select MESCIUS > MESCIUS License Manager
- The MESCIUS License Manager window appears as shown in the image below:
- Select Create RunTime License. It allows the users to generate runtime license for the project(s). On clicking this option, the following window appears:
- From the above window, you can license the project using Solution Projects or Custom options
In the Solution Projects option, select the license and the project for which license needs to be generated. On clicking the Generate button, a success message appears and a license file <ProjectName>.gclicx is generated.
On selecting Custom option, you can provide the App Name manually for which the license needs to be generated and the location where gclix file needs to save. Also select the type of license in the Serial Key Type dropdown. On clicking the Generate button, a success message appears and a license file <ProjectName>.gclicx is generated
Create Runtime App Key Through MESCIUS.com
If you can't access the Visual Studio Extension, you may also generate runtime app keys from our website by following these steps:
- Visit https://developer.mescius.com/en/my-account/create-app-key.
Note: You must create a MESCIUS account and login to access this web page.
- If you are generating a full license, select your ComponentOne Ultimate serial number from the Select License drop-down menu on the page. If you are generating a trial license, leave it selected as Evaluation.
Note: You should have ComponentOne License to generate the runtime license.
- Select app type from the App Type drop-down based on the type of application that you are building.
- In the App Name textbox, enter the name of your application.
- Click the Generate APP KEY button. A runtime license will be generated in the form of a string contained within a class.
- Copy the license and complete the following steps to add it to your application.
- Open your application in Visual Studio.
- In the Solution Explorer, right click the project YourAppName.
- Select Add | New Item. The Add New Item dialog appears.
- Under installed templates, select Visual C# | Class.
- Set the name of the class as License.cs and click Add.
- In the class License.cs, replace the content with the copied runtime license key.
public static class License
{
public const string Key = "Your Key";
}
- Follow the given step for the specific platform you are working on.