My ClickOnce installation fails with an error:
File, WindowsFormsProject.exe, has a different computed hash than specified in manifest.
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