Build problems with Postsharp in Appveyor

Asked

Viewed 38 times

1

I’m having trouble doing build of my project in the AppVeyor, (locally works) because the license is in regedit. I checked that it is necessary to create a file postsharp.config and inserir license information, but it still didn’t 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 archive 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 works there normal (does not need the file), probably Postsharp detects that it is a build machine and ignores the license check.

1 answer

0


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

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

enter image description here

Browser other questions tagged

You are not signed in. Login or sign up in order to post.