Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable clickonce Hash Validation

Tags:

c#

clickonce

I am deploying an app using click once where I would like to disable hash validation of the assemblies included. Is there a way to do this from visual studio or do I need another tool to do it? Thank you!

like image 558
Hatim Avatar asked Feb 07 '11 10:02

Hatim


1 Answers

Please note that this is about hashing - not signing!

Yes, there are two ways to do this:

  1. Manually: simply remove the hash-XML-elements within the .manifest file. Note that if you modify the .manifest-File, the hash of that .manifest-file also gets different. So the hash-XML-Element regarding the .manifest-file needs to be removed within the .application file, where it references the .manifest.

  2. Visual Studio: On the publish tab, click on "application files...". The right column says "Hash(include)". Just set the files to "exclude", if you want to change them afterwards.

Official documentation: http://msdn.microsoft.com/en-us/library/che5h906.aspx

like image 191
mischka Avatar answered Nov 01 '22 21:11

mischka