I need to execute commands after all the files have been published on the server. I am using the file system method to publish from Visual Studio, and the .NET Framework 4.7.1.
I have tried to edit the .pubxml file, and added a simple message to show when an target (event) is triggered, but none of the target i tried seems to trigger after all the files are published, it always trigger before or never.
This one works but is triggered just before the files are copied on the server
<Target Name="CustomPostPublishActions" AfterTargets="PipelineAspNetCompileMergePhase">
<Message Text="************ Test 01 ************" Importance="high"/>
</Target>
I also tried the "MSDeployPublish" target, and it is never triggered.
Is there one target i didn't find ? And if there is not, is there another way to do it ?