App.Config Transformation for Windows Applications

In order to have app.config transformation working for windows application, have a separate configuration file for each of the required config, and then add the below lines of code to your project file.

<PropertyGroup>
<AppConfig>App.$(Configuration).config</AppConfig>
</PropertyGroup>

Advertisements