Problems doing Build with PostSharp in AppVeyor

1

I'm having trouble making build of my project in AppVeyor , (locally works) because the license stays in regedit . I noticed that you need to create a postsharp.config file and inserir of license information, but it still did not work

My license is valid.

 C:\projects\webapibase\packages\PostSharp.5.0.41\build\PostSharp.targets(314,5):
 error PS0260: License error. The license
 xxx is not allowed to be loaded from
 C:\projects\webapibase\Service\postsharp.config.
 [C:\projects\webapibase\Service\Service.csproj]
 C:\projects\webapibase\packages\PostSharp.5.0.41\build\PostSharp.targets(314,5):
 error PS0242: License error. No valid license key has been installed.
 Please visit https://www.postsharp.net/purchase to acquire a license
 of PostSharp. To register a license key, use PostSharp Essentials or
 start the evaluation period, execute the program

The postsharp.config

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.postsharp.org/1.0/configuration">
  <License Value="xxxx" />
</Project>

PS : I have the same project in TFS and Build there works normal (does not need the file), PostSharp probably detects that it is a build machine and ignores the license check .

    
asked by anonymous 10.12.2017 / 13:10

1 answer

0

Solved, the solution is to add before the Build a Key in the Registry:

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

    
16.03.2018 / 11:27