Created
September 1, 2010 07:03
-
-
Save chaliy/560341 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | |
| ToolsVersion="4.0" > | |
| <ItemGroup> | |
| <DeployFiles Include="..\Output\**\*.*" /> | |
| </ItemGroup> | |
| <Target Name="Deploy" DependsOnTargets="_Clean"> | |
| <!-- For now Output folder does not even existis --> | |
| <!-- MSBuild will build all stuff an put to Output folder --> | |
| <MSBuild Projects="@(ProjectFiles)" Targets="Build" Properties="TrackFileAccess=False;PublishRootPath=..\..\Output;"/> | |
| <!-- Now lets do something with DeployFiles files --> | |
| <!-- In MSBUILD 3.5 it will be empty --> | |
| <!-- In 4.0 it will behave as expected --> | |
| <Copy SourceFiles="@(DeployFiles)" DestinationFiles="@(DeployFiles->'$(DeployPath)\%(RecursiveDir)%(Filename)%(Extension)')" /> | |
| </Target> | |
| </Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment