Search code examples
c#visual-studio-2013configuration-filesbuildconfiguration

How to set Project Settings with Configuration specific values in VS2013?


Is there a way to set Project Settings with Build Configuration specific values in VS2013? I need to set different values for a WebServiceURL setting from one Build Configuration to another (say MSSQL configuration vs Oracle configuration).

I saw both a preprocessor assembly configuration using #if DEBUG and an afterbuild config file overwrite approach, but the former does not allow for custom configuration names or more than 2 configurations while the later involves copying files after build rather than the quick and easy edit in the Project Properties > Settings page.

Is there something similar to Web.config Transformation available to App.config maybe?


Solution

  • Try this plugin, it works for me. And you can transform any xml-file. https://visualstudiogallery.msdn.microsoft.com/579d3a78-3bdd-497c-bc21-aa6e6abbc859