Microsoft Developer Network > Domovská stránka fór > Windows Presentation Foundation (WPF) > resources in satellite assembly causes exception
Odeslat dotazOdeslat dotaz
 

Odpovědětresources in satellite assembly causes exception

  • 2. července 2009 20:45Bill Swartz Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    <!--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

Odpovědi

Všechny reakce