We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
Recently, I ran into a great free Microsoft tool which is called - Resource Refactoring Tool. This tool provides developers an easy way to extract hard coded strings from the code to resource files.
Resource files (.resx files) consists of XML entries, which specify objects and string inside XML tags. Those files can be opened with text editors and are completely readable and maintainable. One of its common usage is for localization.
How does it work?
Right click on a hard coded string, choose Refactor and then Extract To Resource.
The next screen pops up where we can:
After closing this dialog, the string will automatically be replaced with the reference to the resource that have been chosen.
This tool works on Visual Studio 2005 and 2008, but when both Visual Studio 2008 and 2005 are installed, the Resource Refactoring Tool is not installed on Visual Studio 2008.
Download it here, enjoy…
Tags :.NetC#hard codedRefactoringResourceResource fileresxstringTooltoolsVisual Studio
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd