Skip to content

Instantly share code, notes, and snippets.

@hidegh
Created August 28, 2016 09:33
Show Gist options
  • Save hidegh/9dd62c04f9813da377cb763696331083 to your computer and use it in GitHub Desktop.
Save hidegh/9dd62c04f9813da377cb763696331083 to your computer and use it in GitHub Desktop.
<!-- CONFIG FILES -->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- ... -->
<ItemGroup>
<Content Include="Web.config" />
<None Include="Web.Base.config">
<SubType>Designer</SubType>
</None>
<None Include="Web.Base.PROD.config">
<DependentUpon>Web.Base.config</DependentUpon>
</None>
<None Include="Web.Base.UAT.config">
<DependentUpon>Web.Base.config</DependentUpon>
</None>
<None Include="Web.Base.Debug.config">
<DependentUpon>Web.Base.config</DependentUpon>
</None>
<None Include="Web.Base.Release.config">
<DependentUpon>Web.Base.config</DependentUpon>
</None>
</ItemGroup>
<!-- XLST -->
<Target Name="BeforeBuild">
<TransformXml Source="Web.Base.config" Transform="Web.Base.$(Configuration).config" Destination="Web.config" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment