本文介绍了Dotfuscator Pro无法在Jenkins buildserver下读取许可信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让Dotfuscator Pro 4.13在单元测试和安装包创建之间运行.我们使用的构建服务器是Windows Server 2008 R2上的Jenkins 1.487.

I'm trying to get Dotfuscator Pro 4.13 to run between the unit tests and creation of installation package. The buildserver that we use is Jenkins 1.487 on Windows Server 2008 R2.

dotfuscator的命令行非常简单,我使用/q并指出xml配置文件.当我从命令行手动运行确切的命令时,它就像灵符一样工作.

The command line for dotfuscator is very simple, i use /q and point out an xml configuration file. it works like a charm when i manually run the exact command from the commandline.

但是,当詹金斯执行相同的命令时,会记录以下错误:

But when the same commands are executed by Jenkins the following error is logged:

由于某种原因,Dotfuscator在詹金斯(Jenkins)运行时无法读取许可信息.我找不到与此有关的任何信息,但有一些信息告诉我,这与执行Jenkins的用户有关.我想念什么?

For some reason Dotfuscator cant read the licensing information when it's ran by Jenkins. I cant find any information about this but something tells me that this is related to the user that Jenkins is executed under. What am i missing?

推荐答案

我认为这与用户相关.这个问题源于Jenkins工作被执行的用户从未接受过Dotfuscator用户协议.有两种方法可以解决此问题:

As i thought it was something user related. this problem comes from that the user the Jenkins job is ran under has never accepted the Dotfuscator user agreement. There are two ways to resolve this:

您要么以运行自动构建的用户身份登录计算机,然后启动Dotfuscator GUI并接受许可协议

Either you log into the machine with the user that is running the automated build and launch the Dotfuscator GUI and accept the license agreement

或者您可以复制以下文件:

Or you can copy the following files:

C:\ Users {已安装/接受协议的用户} \ AppData \ Local \ PreEmptive Solutions \ Dotfuscator Professional Edition \ 4.0 \ dfusrprf.xml
C:\ Users {安装/接受协议的用户} \ AppData \ Local \ PreEmptive Solutions \ Dotfuscator专业版\ 4.0 \ dotfuscator.cfg
C:\ ProgramData \ PreEmptive Solutions \ Dotfuscator专业版\ 4.0 \ dotfuscator.dat

C:\Users{user that installed/accepted agreement}\AppData\Local\PreEmptive Solutions\Dotfuscator Professional Edition\4.0\dfusrprf.xml
C:\Users{user that installed/accepted agreement}\AppData\Local\PreEmptive Solutions\Dotfuscator Professional Edition\4.0\dotfuscator.cfg
C:\ProgramData\PreEmptive Solutions\Dotfuscator Professional Edition\4.0\dotfuscator.dat

进入dotfuscator的安装目录(默认为C:\ Program Files(x86)\ PreEmptive Solutions \ Dotfuscator Professional Edition 4.13.0).

into the installation directory of dotfuscator (default is C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition 4.13.0).

这篇关于Dotfuscator Pro无法在Jenkins buildserver下读取许可信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 06:19