I am getting the following error when I publish my ClickOnce application with MSBuild. I have a pre-publish task which copys the correct app.config file into the project before the publish and this is the only thing that I think could be causing this error. How can I correct this?
Following failure messages were
detected: File,
MyApplication.exe.config, has a
different computed hash than specified
in manifest.
You’re copying the file after the hash is generated.
You need to copy the file during BUILD and before PUBLISH. The ClickOnce mechanism thinks there is tampering going on.