Created
September 25, 2013 04:55
-
-
Save aaronpowell/6695293 to your computer and use it in GitHub Desktop.
Copy Umbraco files on build
This file contains 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
<Target Name="BeforeBuild"> | |
<ItemGroup> | |
<UmbracoFiles Include="..\packages\UmbracoCms.6.1.5\UmbracoFiles\umbraco\**\*;" /> | |
<UmbracoClientFiles Include="..\packages\UmbracoCms.6.1.5\UmbracoFiles\umbraco_client\**\*;" /> | |
</ItemGroup> | |
<Copy SourceFiles="@(UmbracoFiles)" DestinationFiles="@(UmbracoFiles->'umbraco\%(RecursiveDir)%(Filename)%(Extension)')" /> | |
<Copy SourceFiles="@(UmbracoClientFiles)" DestinationFiles="@(UmbracoClientFiles->'umbraco_client\%(RecursiveDir)%(Filename)%(Extension)')" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For when you want to use the UmbracoCms NuGet package but don't want to commit the Umbraco/Umbraco_client folders into your SCM.
This will then copy them before build, with MSBuild taking care of the diff checking.
You'll have to update the
/packages/UmbracoCms.<version-number>/
path to match your version