0

How can I create multiple app.config for different environments where values can be overridden

For example, I want to have app.Debug.config and app.Release.config where I can change specific values in like I do on my web projects (Web.config Transformation Syntax for Web Application Project Deployment):

<add key="Test" value="Value_For_Test_Environment" xdt:Transform="Replace" xdt:Locator="Match(key)" />
Yovav
  • 2,557
  • 2
  • 32
  • 53
  • https://stackoverflow.com/questions/1295497/visual-studio-differentiate-app-config-for-debug-and-release-mode – Nino Jul 31 '18 at 07:42

1 Answers1

0

For this purpose I used an extension called SlowCheetah. It brings the transformation to non-web projects. In the market you have the tutorial to use it.

https://marketplace.visualstudio.com/items?itemName=vscps.SlowCheetah-XMLTransforms

rxj
  • 39
  • 1
  • 11