Champ
Champ

Reputation: 53

How to replace multiple config files with new config files?

In my asp .Net application, how can I replace 3 config files with 3 new corresponding config files(from different directory) in web deployment package? For example

Replace A1.config, A2.config,A3.config with B1.config,B2.config,B3.config?

Upvotes: 0

Views: 338

Answers (1)

Yuri
Yuri

Reputation: 2900

If you are looking to have a single configuration for each environment, like QA, UAT, DEV you probably need a Configuration Transform plugin for visual studio.It will automatically transform app.config during build process. Once the transformation is set, it will run on other build machines without the extension. Here is the link to download it and simple tutorial to get you started

Upvotes: 1

Related Questions