Troubleshooting PostSharp License Issues on the Build Server: Where can I find my PostSharp Express license?

I'm having problems with my CI build server, which causes PostSharp to crash the build with the message: The assembly 'yada-yada.dll' uses non-licensed features (Basic Features). [...] The assembly 'yada-yada.dll' uses non-licensed features (Basic Features). [...] . We are using the current version of PostSharp (3.1.52) and we have no problems with the library in the local development environment, where developers have a registered Express license.

According to the PostSharp Docs , the build server does not require a license. However, they acknowledge that automation identification may be unsuccessful:

If this check does not work for any reason, you can use the license key of any licensed user for the build server. This will not be considered a violation of the license. However, it’s better to report the problem to our technical support so that we can fix the detection algorithms.

It is recommended that you include the license key in the version control system.

I am trying to test this theory but cannot access my valid PostSharp Express license! PostSharp options also don't help:

PostSharp License Options

Does anyone have any ideas? Thanks!

+5
source share
3 answers

You can find your license key in the registry HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3 .

+4
source

If your license key does not appear in the specified location, these steps will help you find a new one.

Uninstall any previous version of postsharp installed in visual studio by going to TOOLS> Extensions and Updates.

Open regedit. Delete the following registry key (including all child keys):

HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3

Download the latest postssharp vs extension posts. At the time of this writing, I was using 4.2.17. Also make sure you are using the latest postsharp nuget package.

Start the installation and follow the steps. When choosing the right license, select "Express user license" (last option).

select post sharp expression

Enter your data, then in the penultimate step, do not select the checkbox to register postsharp for all accounts on this computer.

do not register a license for all accounts

Complete the installation, you should find the license key in your registry at:

HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3\LicenseKey

0
source

There are two types of keys!

  • for current user: HKCU \ SOFTWARE \ SharpCrafters \ PostSharp 3
  • for all users: HKLM \ SOFTWARE \ WOW6432Node \ SharpCrafters \ PostSharp 3

The license may be in one of them, depending on what type of license you have chosen.

0
source

Source: https://habr.com/ru/post/1204937/


All Articles