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.
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.
, GenerateManifests CoreBuild ( Microsoft.Common.targets), BeforeBuild.
, app.config, , , ? , ... , " BeforeBuild? '.
() ... .
Source: https://habr.com/ru/post/1722734/More articles:Odd behavior of a Perl conditional operator - conditional-operatorCall the web service via https - c #Can I start and stop slow-motion workers from my Rails application? - ruby-on-railsExplorer blocks my IE plugin - c #Visual Studio 2008.Net - a step over the current process - debuggingHow to run CruiseControl.NET task, but only after completion of a specific task? - .netH1 tag class (alternative) - htmlКак вы выполняете контроль доступа на С#? - c#Как вставить данные без указания значения для первичного ключа с неинвазивным приростом? - mysqlWhen should I use the HtmlHelper extension methods? - asp.net-mvcAll Articles