OOB公網部署時必須加上數字簽名才能自動更新,目前查到的方法如下:
1,以管理者身份打開Visual Studio Tools裡面的Visual Studio Command Prompt ,然後運作以下指令。
makecert.exe -r -n "CN=wengyuli" -b 01/01/2009 -e 12/31/2019 -sv c:\Demo\CbipSetupKey.pvk c:\Demo\CbipSetupKey.cer
cert2spc.exe c:\Demo\CbipSetupKey.cer c:\Demo\CbipSetupKey.spc
pvkimprt -pfx c:\Demo\CbipSetupKey.spc c:\Demo\CbipSetupKey.pvk
cert2spc.exe測試工具通過一個或多個 X.509 證書建立發行者證書 (SPC)。Cert2spc.exe 僅用于測試目的。可以從證書頒發機構(如 VeriSign 或 Thawte)獲得有效的 SPC。
2,對xap包進行簽名
右擊silverlight項目Properties>Signing>select fron file。
3,全部生成,釋出WEB即可。
<a target="_blank" href="http://blog.51cto.com/attachment/201106/232728249.png"></a>
本文轉自xshf12345 51CTO部落格,原文連結:http://blog.51cto.com/wengyuli/583875,如需轉載請自行聯系原作者