Skip to content

Instantly share code, notes, and snippets.

@leniel
Last active December 18, 2015 01:28
Show Gist options
  • Save leniel/5703732 to your computer and use it in GitHub Desktop.
Save leniel/5703732 to your computer and use it in GitHub Desktop.
MS Deploy AfterPublish target
<Target Name="CustomAfterPublish" AfterTargets="PipelineDeployPhase;MSDeployPublish;Package">
<!-- Note to see this message when publishing from VS in the output window you must increase the verbosity
of the output to Detailed. Here is where you can find the setting:
Tools->Options->Projects and Solutions->Build and Run->MSBuild project build verbosity. -->
<Message Text="**************** Custom target after publish ****************" Importance="high" />
<Copy SourceFiles="$(ProjectDir)\MyCustomScript.js" DestinationFolder="C:\MyFolder\data\repos\conf\web" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment