Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2012 03:42
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 anonymous/3400359 to your computer and use it in GitHub Desktop.
Save anonymous/3400359 to your computer and use it in GitHub Desktop.
Transform.msbuild
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Transform"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="TransformXml"
AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
<Target Name="Transform">
<TransformXml Source="$(TransformSourcePath)Web.config"
Transform="$(TransformSourcePath)Web.$(Configuration).config"
Destination="$(PackagePath)Web.config"
StackTrace="false" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment