In a localized program containing a neutral neutral XAML file, some neutral culture icons and localized lines, how do you organize these different types of resources so that they can be found? No matter what setting I try, I find that one of my resource types is not available.
The problem I encountered is:
The MainWindow.xaml file is always built into the en-US satellite assembly. If UltimateResourceFallbackLocation is set to MainAssembly, it will never find Window BAML, and I get an exception in the call to InitializeComponent (). Therefore, I feel compelled to set UltimateResourceFallbackLocation to "Satellite".
The neutral culture resources contained in the Resources.resx file are always embedded in the main EXE assembly and cannot be found if UltimateResourceFallbackLocation is set to Satellite. This would seem to be completely incompatible with the requirements of the MainWindow.xaml file.
If I completely remove the UICulture and NeutralResourcesLanguage, which causes the XAML and RESX data to be embedded in MainAssembly, then my culture related lines do not work.
Question: what am I doing wrong? How should I build a project so that all three of these types of resources are available.
Edit (working solution, but it seems wrong):
RESX , Resources.resx, Satellite, , Resource.en-US.resx Resource.resx : ( Resource.resx Resources.Designer.cs, Main EXE).
( , resx XAML), , . resx .
? ?