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 .