Skip to content

Instantly share code, notes, and snippets.

@ryancole
Forked from hagbarddenstore/Example.csproj
Created June 17, 2014 18:07
Show Gist options
  • Save ryancole/5ef3fe358a34dc67a0a8 to your computer and use it in GitHub Desktop.
Save ryancole/5ef3fe358a34dc67a0a8 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Content Include="App.config">
<SubType>Designer</SubType>
</Content>
<Content Include="App.Base.config">
<DependentUpon>App.config</DependentUpon>
</Content>
<Content Include="App.Debug.config">
<DependentUpon>App.config</DependentUpon>
</Content>
<Content Include="App.Release.config">
<DependentUpon>App.config</DependentUpon>
</Content>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<Target Name="BeforeBuild">
<TransformXml Source="App.Base.config" Transform="App.$(Configuration).config" Destination="App.config" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment