Skip to content

Instantly share code, notes, and snippets.

@jarekb84
Created May 17, 2015 16:13
Show Gist options
  • Select an option

  • Save jarekb84/1b7960838cef525e33fa to your computer and use it in GitHub Desktop.

Select an option

Save jarekb84/1b7960838cef525e33fa to your computer and use it in GitHub Desktop.
app.config transform
<Target Name="UpdateAppConfigBeforeRun" BeforeTargets="Build">
<Message Text="Configuration: $(Configuration): App.template.$(Configuration).config"/>
<Exec Command="attrib -r App.config" />
<TransformXml Source="App.template.config"
Transform="App.template.$(Configuration).config"
Destination="App.config" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment