MSBuild Event After Posting VS 2013

So, I have problems finding a goal that performs AFTER I posted.

I have a web application and I use one click to publish to the file system.

In my proj file, I have:

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />

Then I want to perform a simple copy task after publishing to the file system:

<Target Name="CustomPostPublishActions" AfterTargets="AfterPublish" >

<Message Text="--After Publish--" />
<ItemGroup>
  <ConfigurationFiles Include="$(ProjectDir)/MyFolder/**/*" />
</ItemGroup>
<Copy SourceFiles="@(ConfigurationFiles)" DestinationFolder="C:\Temp\" />

This works for many purposes, but not for AfterPublish or MSDeployPublish. Are these old goals no longer supported? What can i use instead?

+4
source share

All Articles