I am trying to run a command after publishing.
<Target Name="AfterPublish" AfterTargets="MSDeployPublish">
<Exec Command="echo @@@@@ AfterPublish @@@@@ " />
</Target>
But as you see below, it copies the published output after calling this target.
------ Publish started: Project: ClickOnceTest, Configuration: Debug Any CPU ------
2> @@@@@ AfterPublish @@@@@
Connecting to 'C:\temp\Debug\'...
Publishing files...
Publish success.
How do I get it to happen after the "Publishing files" step is finished?
Do you have any lingering "DependsOnTargets"?
http://freetodev.wordpress.com/2009/06/24/msbuild-4-0-beforetargets-and-aftertargets/
There are some "rules of execution".......when that happens.
I don't think you've given enough of your msbuild contents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With