Postsharp free licences do not work on the new environment

How can we fix this issue?

Could you please provide a step by step explanation.

Thanks

  1. Yes

    But i did not understand the solution.

    :(

    iPhone'umdan gönderildi

    23 Eki 2014 tarihinde 17:50 saatinde, "Feodor Fitsner" <[email blocked]> şunları yazdı:

  2. Based on the last comment here I can assume you should just create postsharp.config file in the root of your solution (repository) with the following contents:

    <Project xmlns="http://schemas.postsharp.org/1.0/configuration">
      <License Value="YOUR_LICENSE_FROM_REGISTRY"/>
    </Project>
    

    where YOUR_LICENSE_FROM_REGISTRY value could be found at your dev machine under HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3.

  3. I tried that but failed. This is the error log

    (PostSharp30 target) ->
    5976 C:\projects\common\Common\Common.Adapter\Common.Adapter.csproj : postsharp error PS0127: The assembly 'ModuleDeclaration Common.dll' uses non-licensed features (Basic Features). Please visit http://www.postsharp.net/purchase to acquire a license of PostSharp.
    5977 C:\projects\common\Common\Common.Adapter\Common.Adapter.csproj : postsharp error PS0154: Information regarding the previous message: the installed user license is: "".
    5978 C:\projects\common\Common\Common.Adapter\Common.Adapter.csproj : postsharp error PS0060: The processing of module "Common.Adapter.dll" was not successful.
    5979
    5980 0 Warning(s)
    5981 3 Error(s)
    5982
    5983Time Elapsed 00:00:07.47
    5984Command exited with code 1

  4. I solved it by adding registry key

    New-Item "HKLM:\Software\Wow6432Node\SharpCrafters\" -Type Directory
    New-Item "HKLM:\Software\Wow6432Node\SharpCrafters\PostSharp 3" -Type Directory
    New-ItemProperty -Path "HKLM:\Software\Wow6432Node\SharpCrafters\PostSharp 3" -Name LicenseKey -PropertyType String -Value ANEdsfsdfsdfsd-ZQQQdsfsdfsdfA
    NuGet.exe restore C:\projects\common\common\Common.sln

  5. Oh, you were first.

    I've been about to post this :)

    REG ADD "HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3" /v LicenseKey /t REG_SZ /d <your_license>
    

    replace <your_license> with your value.

  6. thank you.

    Have a great weekend

  7. Rifat Erdem Sahin closed this discussion on 26 Dec, 2014 01:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac