.NET allows you to create a user control or class library, reusable components which can be created in one project and can be used again in other projects.
In order to properly license the final application, the user control (or class library) needs to be licensed as well. See licensing solutions below.
If a user control or control assembly is signed with the same SN Key (strong key) as the calling application, then a valid application license is accepted by the user control.
You can sign the user control and your main, calling application with the same strong name key file in Visual Studio through the Signing tab of the project properties.
If a strong name key solution will not work, you can manually generate a run-time license for the user control. This can be done through the MESCIUS Visual Studio menu, or by command line.
In Visual Studio select Tools > MESCIUS > License Manager > Create Run-time License.
This will generate a run-time license file (.gclicx) at the location you specified. Locate the generated .gclicx file and add the file to your Properties folder of the user control project, and set its BuildAction to EmbeddedResource.
The runtime license can be generated by command line:
Add the generated .gclicx file to your Properties folder of the project, and set its BuildAction to EmbeddedResource.
Notes:
-[app-name] refers to the name of your application
-[library-name] refers to the name of your user control or class library
-[product-id] refers to the unique ComponentOne product ID. To find the list of product ids, see Activation by Command Line.
For example, if you have an activated license for ComponentOne Studio Enterprise, your user control was named MyUserControl.dll and your application was MyApplication.exe, the Windows command line would be:
Licensing a user control or class library with a standard developer license as demonstrated above requires that the application name is known. If the application name is unknown, and you cannot use a strong named key, you may request a special plugin license. Please contact our sales or support team for more information.
With an activated plugin developer license you can generate a run-time license file by command line using the just the user control library name:
Notes:
-[library-name] refers to the name of your user control or class library
-[product-id] refers to the unique ComponentOne product ID. To find the list of product ids, see Activation by Command Line.
For example, if you have an activated license for ComponentOne Studio Enterprise, your user control was named MyUserControl.dll, the Windows command line would be:
In Visual Studio select Tools > MESCIUS > License Manager > Create Run-time License.