现在已经使用PostSharp 6个月了,只是Essentials部分,没有本地或TFS在线版本的问题,然后就开始发生了:
D:\a\1\s\ACME.Email.Publisher\ACME.Email.Publisher.csproj : 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 C:\ProgramData\PostSharp\5.0.44\bin.Release\PostSharp.Settings.UI.exe.
C:\Users\VssAdministrator\.nuget\packages\postsharp\5.0.44\build\PostSharp.targets(314,5): error : The process C:\ProgramData\PostSharp\5.0.44\bin.Release\postsharp-net40-x86-native.exe exited with code 11. [D:\a\1\s\ACME.Email.Publisher\ACME.Email.Publisher.csproj]
Build FAILED.
所以...我已经阅读了帖子尖锐的支持页面。看起来他们的启发式检查在无人值守模式下运行 - 因此没有强制执行许可 - 现在失败了。遵循他们的建议: