microsoft / slow-cheetah

Tooling for XML and JSON file transforms on build from Visual Studio and MSBuild
Other
317 stars 66 forks source link

Clickonce sign fail #73

Open mybura opened 6 years ago

mybura commented 6 years ago

When running build with target Package, the resulting clickonce application manifest has the file size of the original settings.json file from the project. SC applies the transforms after Clickonce collected the file size and signs the manifest with the wrong file size. Workaround seems to be to do a Target=Rebuild and then a Target=Publish, Guess SC is invoked a bit late in the chain and "modifies" the resulting file after clickonce has created a manifest.

aseminjakiw commented 5 years ago

I have a similar problem. ClickOnce apparently hashes the *.exe.config file before SC transfroms it. So on application startup i get the a error that the hashes do not match. Any ideas?