“File has a different computed hash than specified in manifest” error when signing the EXE

前端 未结 3 1546
故里飘歌
故里飘歌 2020-12-18 05:42

My ClickOnce installation fails with an error:

File, WindowsFormsProject.exe, has a different computed hash than specified in manifest.

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 06:05

    If you are using MSBuild 4, you can use AfterTargets property to sign assembly just after it was created and before any further steps will be taken. Remove your post-build step and add this block to your project instead:

    
      
        http://timestamp.verisign.com/scripts/timstamp.dll
      Foo bar
      /sha1 578a9486f10ed1118f2b5f428afb842e3f374793
      
      
        
      
      
              
      
        
    
    

提交回复
热议问题