CruiseControl.NET service failing to build due to MSBuild ResolveKeySource error, despite certificate being imported

醉酒当歌 提交于 2019-12-04 12:43:22
si618

Thanks to Preet's suggestion, I was able to get it working using the following process:

  1. Created a user for the CruiseControl.NET service.
  2. Gave user log on as a service rights and changed CruiseControl.NET service to run as this user.
  3. Logged on as this user and ran the XBAP project from the command line.
  4. Entered the PFX password when prompted by ResoveKeySource task.
  5. Tested building from CruiseControl.NET, green lights, horray!

What is interesting is that as part of step 3. After logging on as this user, I imported the PFX file into it's certificate store before running MSBuild from command line. This didn't solve the problem, I had to build the project from the command line, enter the password and then it worked from CruiseControl.NET service.

Thank you Preet!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!