If you were using this tool in Visual Studio 2008 and then upgraded your solution to Visual Studio 2010, you might have noticed that this functionality no longer worked. You also might have received an error, which you dismissed.

ResXFileCodeGeneratorEx is an awesome tool and I’m surprised it still hasn’t been officially updated to support Visual Studio 2010.

Well after doing some digging around, I found an article with a work around that enables this functionality in Visual Studio 2010. Here are the instructions to get it working on your machine, followed by an example:

  1. Shut down Visual Studio 2010.
  2. If you don’t already have the tool ResXFileCodeGeneratorEx downloaded and installed, please do so. You can get the latest installer from http://dmytro.kryvko.googlepages.com/
  3. Save the attached file in this email and remove the .temp extension.
  4. Double click the attached file that you renamed and have it add its contents to your Registry.
  5. Restart Visual Studio 2010.

Here is a working example of how to use the tool. Say you want to add a new entry to the PageText.resx resource file contained in your solution and the entry was “Abandoned”:

  1. Open up PageText.resx by double clicking the file.
  2. Add “Abandoned” in the name and “Abandoned” in the value.
    clip_image002
  3. Click Save.
  4. Next right click on PageText.rex and click on Run Custom Tool as shown below…
    clip_image002[8]
  5. Now you can reference this value from your code by typing in PageText.
    clip_image002[10]

Hope that helps.

Posted by Callon Campbell [MVP]

4 Comments

  1. Hi,
    Does anyone knows to get ResXFileCodeGeneratorEx working on Visual Studio 2012.
    Thanks.

    Reply

  2. […] up to a post I did in 2012 on ResXFileCodeGeneratorEx Update for VS2010, here are links to download this tool for Visual Studio 2015 and Visual Studio […]

    Reply

  3. This page certainly has all the information I needed concerning this
    subject and didn’t know who to ask.

    Reply

  4. Trying to get this working for product maintenance of an old product. This post references a .temp file, which I presume does the registration, but I can’t find that on this page. Any help?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s