Making ResXFileCodeGenerator generate public classes from Visual Studio 2005.

Visual Studio 2005 has a cool tool that takes a resource file and generates a strongly typed wrapper around it. It has one problem, though, it creates internal classes, and I want to centralize all my strings in a single assembly, which all the other projects will reference.

Interestingly, "ResGen.exe resources.resx /str:c# /publicClass" will create the code I want, but I have hard time finding out how to enable this from Visual Studio.

The question has been asked in the newsgroups, but so far no one has an answer. I found some workarounds, but I wonder if there is a true way to do it.

Print | posted on Tuesday, November 15, 2005 5:40 PM

Feedback


Gravatar

# Interesting Finds 2/3/2007 7:49 AM jasonhaley.com

Comments have been closed on this topic.