Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:06:25+00:00 2026-06-09T22:06:25+00:00

I’ve just come across the weirdest behavior in Visual Studio 2010 while working with

  • 0

I’ve just come across the weirdest behavior in Visual Studio 2010 while working with Resx resource files and I just can’t wrap my head around it.

The problem is as follows: Visual Studio will not generate the designer.cs file for a resource file with a localized name (such as resource.fr.resx), but it works fine for other files with simple names (such as resource.resx).

Here’s a snapshot of my visual studio project setup:

enter image description here

As you can see I just did a simple test with 3 resource files:

  • test.resx
  • test2.resx
  • test.fr.resx

The designer.cs files for test.resx and test2.resx are generated just fine. However test.fr.designer.cs is created but always blank, no matter what I do.

I have double and triple checked: the custom tool property is properly set for the localized file. All properties are exactly the same across all files (I’m using PublicResxFileCodeGenerator, but I get the same behavior if I set access modifier to internal and use ResxFileCodeGenerator).

Note: I’ve noticed that when created a resource file, Visual Studio normally defaults the access modifier to “Internal”. However, when creating a localized resource file (resource.fr.resx) it defaults to “No code generation”. Just found that interesting to note since it proves that visual Studio is treating the localized file differently for some reason.

–> Is there something I’m missing here? I would appreciate if anybody has some insight on the subject, this is driving me crazy.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:06:26+00:00Added an answer on June 9, 2026 at 10:06 pm

    While I haven’t looked into this particular issue, I’ve had numerous other problems with “.resx” files. Visual Studio is sometimes buggy (handling “.resx” files among other things), and I’ve officially reported some of these to MSFT (since it affects my own commercial localization program). In any case, you shouldn’t normally be naming things this way. It effectively violates MSFT’s localization rules. Default language files shouldn’t normally have an embedded language code, and it could be choking on it for this reason. I’d need to investigate, but what you should be doing is creating “Test.resx”, which has a “Designer.cs” file, and then “Test.fr.resx”, which doesn’t. All default language strings are then placed in “Test.resx” and the corresponding French strings in “Test.fr.resx”. In code, you then access the strongly typed name found in “Test.Designer.cs”, and the string you get back will be the default language string unless you set “System.Threading.Thread.CurrentThread.CurrentUICulture” to “fr”. You’ll then get back the French version of the string from “Test.fr.resx”, unless it’s not found there (there’s no translation), in which case you’ll get back the fallback string from “Test.resx” (i.e., the default language string). This is how the hub-and-spoke model basically works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.