MSDN > Home page del forum > Windows Presentation Foundation (WPF) > resources in satellite assembly causes exception
Formula una domandaFormula una domanda
 

Con rispostaresources in satellite assembly causes exception

  • giovedì 2 luglio 2009 20.45Bill Swartz Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    <!--DIV {margin:0px;}-->
    I have a simple wpf application.

    The project file contains "<UICulture>en-US</UICulture>".

    AssemblyInfo.cs contains
    [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]

    Resources.resx uses the Custom Tool
    PublicResXFileCodeGenerator

    There is a single string resource named ButtonText.

    I signed the assembly.

    The following line generates an error.
                string str = Properties.Resources.ButtonText;

    The message is:
                Message="Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"WpfLocTest.Properties.Resources.en-US.resources\" was correctly embedded or linked into assembly \"WpfLocTest\" at compile time, or that all the satellite assemblies required are loadable and fully signed."

    Does anyone see a solution?

    Bill

Risposte

Tutte le risposte