Tangible Thoughts

SharePoint, MOSS? and all the other questions

  Home  |   Contact  |   Syndication    |   Login
  839 Posts | 6 Stories | 279 Comments | 2142 Trackbacks

News

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Linky Things

SharePoint Bloggers

SharePoint Related

What I am playing

What I am Reading

Today I was looking for a tool that would generate wrappers for existing resx files (if you are wondering, yes VS 2005 has corrupted me). I did a bit of googling around and found ResxWrap on SourceForge. Actually I found Codify templates first, but that was a bit too beefy for my requirement.

ResxWrap is a simple console app that will parse your resx file and generate a c-sharp wrapper. The downside is that it creates ‘string’ properties for all your resource values no matter what type they are. Its still a neat tool though, but can do with a lot of polishing up, even a GUI.

VS Tip: If you want to generate a wrapper in VS2005 for an existing resx file, just open up the properties window for the resx and add the “ResXFileCodeGenerator” as a custom tool. That would generate the wrapper class for you. Only shortcoming of this approach is the wrapper OOB will only work with .NET 2.0, which leaves a lot of work for you, if you want to be able to use it across runtime versions..

posted on Sunday, October 30, 2005 10:44 PM

Feedback

# re: ResXWrap 10/31/2005 6:54 AM Szymon
In one of my projects I used Resource File Creator tool by Jason Haley to quickly create resource file compatible with VS2003. You will find it here jasonhaley.com/articles/resourcefiles/resource%20file%20creator.htm.

# re: ResXWrap 11/12/2005 1:49 AM 贝迪标识
very good!

# re: ResXWrap 11/12/2005 1:50 AM 扎带端子
you are the best!

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: