7

Possible Duplicate:
App.Config Transformation for 'none web projects' in Visual Studio 2010?

Basically, the question above. The new config transformations that are provided for a web.config file for different environments are really nice.

However, I'd like the same functionality for app.configs that vary across testing environments.

Does anyone know of a way to make this work?

Thanks in advance.

Community
  • 1
  • 1
CubanX
  • 5,176
  • 2
  • 29
  • 44

3 Answers3

6

Vishal Joshi has a post on this: Applying XDT magic to App.Config

There's also a related, though possibly dated, question on StackOverflow here: App.Config Transformation for Visual Studio 2010?

Community
  • 1
  • 1
Jim Lamb
  • 25,355
  • 6
  • 42
  • 48
3

I recently made a post about this, you can find it at:

Visual Studio App.config XML Transformation

It's based on the Vishal Joshi post but removes the requirement to change the build action of the app.config files to Content and also adds support for ClickOnce deployment.

João Angelo
  • 56,552
  • 12
  • 145
  • 147
0

Officially, no.

Off the record, yes. Here's the best blog post I've seen on enabling the transformations for app.config files:

Vishal Joshi's Tangent: Applying XDT magic to App.config

Justin Niessner
  • 242,243
  • 40
  • 408
  • 536