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).

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

Complete the installation, you should find the license key in your registry at:
HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3\LicenseKey
source share