Project Description
FilesModificatorAdmin utility

1. Purpose.
2. How it works.

=================================================
1. Purpose.
In my current project we've got a lot of composite WCF-services. We have several environments: Development,Test1, Test2, Production.
We don't have the service repository. That means when we move the services from one environment to another, we have to change addresses (URLs) in the <client> sections of all Web.config files (several dozens). Boring and error prone work, isn't it?

The FilesModificatorAdmin utility was created to change all addresses in all Web.config files by one click.


2. How it works.
We define the files that should be scanned and changed. We define the root folder for search. We define the replacements substrings like "http://Env1.MyCompany.com/Composite/Promo/PromoService.svc". The utility derives the searching substring RegExes from the replacement substrings like ""http[^\"]*?PromoService.svc".

Then the FilesModificatorAdmin utility scans all defined files in all folder tree and replace the substrings.
Utility creates the copy of the changed files as OldName.copy.
Utility output the progress to the screen and optionally to the log file.
Utility could optionally just scan the files and show how many searching substrings were found and where.

GLD (C) 2008



Last edited Oct 8 2008 at 10:35 PM by leo_gan, version 2

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196