Skip to content

Instantly share code, notes, and snippets.

@dotnetchris
Created October 5, 2012 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotnetchris/3840124 to your computer and use it in GitHub Desktop.
Save dotnetchris/3840124 to your computer and use it in GitHub Desktop.
Msbuild file for getting web deploy to play nicely with Cassette.MSBuild
<?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