使用TFS在线服务进行构建时,有什么方法可以对Clickonce应用程序进行签名? [英] Are there any way to Sign Clickonce application when building with TFS online services?

查看:60
本文介绍了使用TFS在线服务进行构建时,有什么方法可以对Clickonce应用程序进行签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经启用了单击一次应用程序的登录.

I have enabled signing in my click once application.

但是构建服务器(TFS联机服务)没有证书.有什么方法可以将证书包含在存储库中,并使构建服务器对其进行签名,还是必须禁用签名并在之后手动进行签名?

But the build server (TFS online services) do not have the certificate. Is there any way I can include the certificate in the repositiory and make the build server sign it or do I have to disable signing and do it manually after?

我没有从商店中选择证书,而是签入文件并从文件中选择.

Instead of picking a cert from the store I checked in a file and picked from file instead.

构建服务器然后给我:

C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets(2482):无法导入以下密钥文件:.密钥文件可能受密码保护.要解决此问题,请尝试再次导入证书或将证书手动导入当前用户的个人证书存储中.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (2482): Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user’s personal certificate store.

(是否打算让我在没有密码的情况下签入,而其他人会这样做?在没有密码的情况下拥有私钥并不危险).

(is it intended that I should check one in without the password and is that what others do? is it not dangerous to have private keys out there with no password.)

推荐答案

我创建了CodeActivites来使用Mage.exe和Signtool.exe,并将签名构建到我的构建模板中.

I created CodeActivites for using Mage.exe and Signtool.exe and build the signing into my build template instead.

在/t:publish中,所有文件都具有.deploy扩展名,我必须创建一个XML任务来更新清单xml以支持该任务.

From /t:publish all files had .deploy extension and I had to create a XML Task that updates the manifest xml to support this.

这篇关于使用TFS在线服务进行构建时,有什么方法可以对Clickonce应用程序进行签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆