<p>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 <strong>Licenses.licx</strong> is created - with what appears to be <em>just</em> the assembly full name/identifiers. This file has to be included when the client assembly is built.</p>

<ul>
<li>How does this model work? Both from component-vendors' and users' perspective.</li>
<li>What is the .licx file used for? Should it be checked in? <em>We've had a number of issues with the wrong/right .licx file being checked in and what not</em></li>
</ul>

[{'answer_id': 51391, 'author': 'aksangrav', 'author_id': 5149, 'author_profile': 'https://Stackoverflow.com/users/5149', 'pm_score': 5, 'selected': True, 'text': '<p>Almost everything about .Net licensing is explained <a href="http://www.developer.com/net/csharp/article.php/3074001" rel="noreferrer">here</a>. No need to rewrite, I think.</p>\n\n<p>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.</p>\n\n<p>Hope this helps.</p>\n'}, {'answer_id': 2565862, 'author': 'logicnp', 'author_id': 51919, 'author_profile': 'https://Stackoverflow.com/users/51919', 'pm_score': 5, 'selected': False, 'text': "<p>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.</p>\n"}, {'answer_id': 8333581, 'author': 'Denis', 'author_id': 400589, 'author_profile': 'https://Stackoverflow.com/users/400589', 'pm_score': 3, 'selected': False, 'text': '<p>This was a good article on the topic: <a href="http://www.textcontrol.com/en_US/blog/archive/20091015/">Click Here</a></p>\n\n<p>In order to deploy an application with licensed components like TX Text Control, the EXE file must be licensed properly.</p>\n\n<p>The .NET licensing mechanism recommends to add the licenses to the EXE - the calling assembly. </p>\n\n<p><strong>---- What happens in detail?</strong></p>\n\n<p>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.</p>\n\n<p><strong>Important: The licenses.licx file does not include the license string itself. It just contains information about the licensed components</strong>. In case of TX Text Control (TXTextControl.TextControl), the following string is addded:</p>\n\n<pre><code>TXTextControl.TextControl, TXTextControl, Version=15.0.700.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638\n</code></pre>\n\n<p>As you can see, it contains the namespace and control name, the assembly version, culture information and the unique public key token. Based on that information, the License Compiler (lc.exe) compiles the real license string that will be embedded into the executable assembly. The lc.exe is a small utility of the .NET Framework SDK which is used by Visual Studio during the build process.</p>\n\n<p><strong>---- What if I am using TX Text Control in a user control?</strong></p>\n\n<p>In this case, you need to add the license to the main executable as well. Therefore, you can simply drag and drop a TextControl to a dummy form of the main project, so that the licenses.licx file and the references are added automatically.</p>\n\n<p>After that, you can remove the TextControl from that form again. Or you can simply copy or create a licenses.licx file to the main project folder. In this case, you need to add a reference to TX Text Control manually as well.</p>\n'}]
['https://Stackoverflow.com/questions/51363', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1695/']