Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Web.config transformations be used with App.config files? [duplicate]

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.

like image 665
CubanX Avatar asked Jun 28 '10 13:06

CubanX


People also ask

How does web config transform work?

A Web. config transformation file contains XML markup that specifies how to change the Web. config file when it is deployed. You can specify different changes for specific build configurations and for specific publish profiles.

How do I use different web config files?

config (or any file) when you press F5 in Visual Studio. You can have different transformations based on the build configuration. This will enable you to easily have different app settings, connection strings, etc for Debug versus Release. If you want to transform other files you can do that too.


1 Answers

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?

like image 141
Jim Lamb Avatar answered Oct 19 '22 13:10

Jim Lamb