2009/07/30

C# 編譯產生 Unable to find manifest signing certificate in the certificate store 錯誤

當專案搬到另一台機器進行編譯後,可能會發生「Unable to find manifest signing certificate in the certificate store」,百思不得其解。查閱 Google 大神發現錯誤原因,由於 ClickOnce 的佈署需要經金鑰認證,換一台機器後編譯的金鑰就不同而會發生錯誤。可以手動開啟 *.csproj 檔案,搜尋:

<manifestcertificatethumbprint>XXX</manifestcertificatethumbprint>
<manifestkeyfile>XXX</manifestkeyfile>
<generatemanifests>true</generatemanifests>
<signmanifests>true</signmanifests>


將這幾行刪除後重新存檔,應該就能正常編譯。
--
參考資料:Unable to find manifest signing certificate in the certificate store

1 則留言: