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.