Skip to content

Instantly share code, notes, and snippets.

@kingbin
Created April 18, 2017 21:04
Show Gist options
  • Save kingbin/efc4124abdd6693edcc51e65a3319cc2 to your computer and use it in GitHub Desktop.
Save kingbin/efc4124abdd6693edcc51e65a3319cc2 to your computer and use it in GitHub Desktop.
Enable Transforms on compile
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" />
<Target Name="BeforeBuild">
<TransformXml Source="Web.Base.config" Transform="Web.$(Configuration).config" Destination="Web.config" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment