MSBuild Click-Once Manifest Issues

I get the following error when publishing a ClickOnce application using MSBuild. I have a publishing task that copies the correct app.config file to the project before publishing, and this is the only thing that, in my opinion, can cause this error. How can i fix this?

After error messages, it was detected: the file, MyApplication.exe.config, has a different hash calculated than indicated in the manifest.

+3
source share
3 answers

You copy the file after generating the hash.

You need to copy the file during BUILD and before PUBLISH. The ClickOnce engine thinks fake is happening.

+4
source

, GenerateManifests CoreBuild ( Microsoft.Common.targets), BeforeBuild.

, app.config, , , ? , ... , " BeforeBuild? '.

+3

() ... .

+1

Source: https://habr.com/ru/post/1722734/


All Articles