Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How licenses.licx file is used

I've got licenses.licx file that is included to one of my projects properties. I am not sure how that is used by its dlls. Is it used by msbuild? Do you have any idea how it is used when the solution is building?

like image 733
CharithJ Avatar asked Apr 12 '11 00:04

CharithJ


People also ask

Where is the licenses Licx file?

If you drag and drop a TextControl from the Visual Studio toolbox to a form, Visual Studio creates a licenses. licx file and includes the license information. This file is located in the same folder like your project file.

What is LC file in Visual Studio?

Visual Studio 2017 runs the . NET Framework License Compiler (lc.exe) to build license files (. licx files). The License Compiler refers to a particular registry for the installation path of the Software Development Kit (SDK) that's installed in the environment.


1 Answers

Since you indicate that StellarEleven's reply doesn't help, I guess you're looking for something even simpler. This is probably not 100% correct, but it is my understanding of how this works:

The licx file is simply a list of the "licensed" components used by your application.

Each line in the file is of the following format:

[Component Name], [Assembly Name] 

For example one of my projects uses the licensed IP Works NetDial component so my .licx file contains the following line:

nsoftware.IPWorks.Netdial, nsoftware.IPWorks 

In the context of the project (.csproj) file, the .licx file is referenced as an EmbeddedResource. During the build process, LC.exe verifies that the machine performing the build has the appropriate license(s) for the component in question, and generates a binary .licenses file which eventually gets embedded as a resource ([AssemblyName].exe.licenses) in the final executable.

Does this help?

like image 193
Richard J Foster Avatar answered Sep 18 '22 05:09

Richard J Foster