Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the Licenses.licx based .Net component licensing model work?

Tags:

.net

I've encountered multiple third party .Net component-vendors that use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a Licenses.licx is created - with what appears to be just the assembly full name/identifiers. This file has to be included when the client assembly is built.

  • How does this model work? Both from component-vendors' and users' perspective.
  • What is the .licx file used for? Should it be checked in? We've had a number of issues with the wrong/right .licx file being checked in and what not
like image 892
Gishu Avatar asked Sep 09 '08 07:09

Gishu


People also ask

What is LICX license?

The licenses. licx file is a text file located in a . NET project that notifies Visual Studio to compile a license file into an executable's resource. This enables EXE applications to be deployed to a machine without an SDK installed.

Where is the licenses licx file?

If you're working on a pre-existing project, it may be available in the Solution Explorer underneath the Project Name > Properties > licenses. licx.

What is lc exe?

The license compiler (lc.exe) is compiling the licenses of referenced components into the resources of a created assembly. In some versions of . NET Core, the LC task is not supported or fails.


2 Answers

That's not correct. The licx file is very important and is necessary for the host app to be built with the correct license info embedded in it. So, its critical that the licx files be also included in source control. Otherwise a person checking out the source code on another machine will not get the licx file and the build may fail or not have the proper license info for the used components in the exe.

like image 165
logicnp Avatar answered Oct 07 '22 21:10

logicnp


Almost everything about .Net licensing is explained here. No need to rewrite, I think.

It is better to exclude license files from project in source control, if you can. Otherwise, editing visual components may be pain in the ass. Also, storing license files in source control repository is not a need.

Hope this helps.

like image 21
aksangrav Avatar answered Oct 07 '22 21:10

aksangrav