Created
October 5, 2012 14:34
-
-
Save dotnetchris/3840124 to your computer and use it in GitHub Desktop.
Msbuild file for getting web deploy to play nicely with Cassette.MSBuild
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<CassetteOutputPath>$(IntermediateOutputPath)cassette-cache</CassetteOutputPath> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
BundleAssets; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
<CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
BundleAssets; | |
$(CopyAllFilesToSingleFolderForMsdeployDependsOn); | |
</CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
</PropertyGroup> | |
<Target Name="BundleAssets"> | |
<Exec Command="$(MSBuildToolsPath)\msbuild.exe $(MSBuildProjectDirectory)\cassette.targets /p:OutputPath=$(OutputPath);CassetteOutputPath=$(CassetteOutputPath) /t:Bundle /nr:false" /> | |
<ItemGroup> | |
<_CassetteCacheItems Include="$(CassetteOutputPath)\**\*.*" /> | |
<FilesForPackagingFromProject Include="%(_CassetteCacheItems.Identity)"> | |
<DestinationRelativePath>Content\cassette-cache\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment