Microsoft Developer Network > 포럼 홈 > Windows Presentation Foundation (WPF) > resources in satellite assembly causes exception
질문하기질문하기
 

답변됨resources in satellite assembly causes exception

  • 2009년 7월 2일 목요일 오후 8:45Bill Swartz 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    <!--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

답변

모든 응답