none
[assembly: NeutralResourcesLanguage("fr")] doesn't bring any label RRS feed

  • Question

  • i have multiple language in my project and has kept my resource files for the multiple languages in a dedicated project (named resourcer). I have named them

    labels.fr.resx

    labels.en.resx

    labels.es.resx

    the project is build in a dedicated folder and not in bin\relesae. I create it in  my custom folder referAssembly

    Now as per the need I have added below line in my assemblyinfo.cs file for the resource file project

    [assembly: NeutralResourcesLanguage("fr")]

    Now When I login first time in my application with language as english

    Everything works fine I can see the labels.

    Now I change language to french. No label is displayed

    If I change it again to english, still no label is displayed. Then I do IISRESET and then I can see my english label.

    So The result is I have to put a global suppression for this project. However what could be the reason that its only working for english and not for other langauges.

    Any solution will be a great help. I have searched on the net extensively but didn't find any help.

    for more information, my machine's regional setting is english/US

    Also I am working on a .net 4.5/ VS 2012 application.

    Friday, October 25, 2013 12:20 PM

Answers