Postsharp free licences do not work on the new environment

Rifat Erdem Sahin's Avatar

Rifat Erdem Sahin

23 Oct, 2014 02:45 PM

How can we fix this issue?

Could you please provide a step by step explanation.

Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Oct, 2014 02:50 PM

    Feodor Fitsner's Avatar
  2. 2 Posted by Rifat Erdem Sah... on 23 Oct, 2014 04:44 PM

    Rifat Erdem Sahin's Avatar

    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ı:

  3. Support Staff 3 Posted by Feodor Fitsner on 23 Oct, 2014 04:53 PM

    Feodor Fitsner's Avatar

    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.

  4. 4 Posted by Rifat Erdem Sah... on 24 Oct, 2014 06:59 AM

    Rifat Erdem Sahin's Avatar

    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

  5. 5 Posted by Rifat Erdem Sah... on 24 Oct, 2014 07:16 AM

    Rifat Erdem Sahin's Avatar

    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

  6. Support Staff 6 Posted by Feodor Fitsner on 24 Oct, 2014 07:18 AM

    Feodor Fitsner's Avatar

    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.

  7. 7 Posted by Rifat Erdem Sah... on 24 Oct, 2014 12:39 PM

    Rifat Erdem Sahin's Avatar

    thank you.

    Have a great weekend

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