I'm having problems with the changes made by the post-build event, which is not saved when published.
I currently have my project to add additional information at the end of several static files in post post. When I view the resulting files locally ( <some path>\bin\x86\Debug\), I can verify that the changes have been made.
When I turn to viewing the same files that were published with a mouse click (in the directory <some click once url>\Application Files\<some version>), the files appear without any changes made to them.
In addition to the post build event, I also tried to try the object BeforePublishand get the same result:
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.Targets" />
<Target Name="BeforePublish">
</Target>
Can someone explain why I experience this behavior and propose a solution?
source
share