次の WPF アプリケーションに国際化を追加するだけで、こちらの手順に従いました。
その後、サテライト DLL にかなりの量の重複があることに気付き、.csproj でローカライズされない画像をマークしました。
<Localizable>False</Localizable>
残念ながら、私のリソースの 1 つが SplashScreen で使用されています。
SplashScreen ss = new SplashScreen("Images/splash.png");
ss.Show(false);
そして、これは Show 呼び出しが実行されると例外をスローします。ここに例外出力があります
A first chance exception of type 'System.IO.IOException' occurred in WindowsBase.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Step into: Stepping over method without symbols 'System.RuntimeType.CreateInstanceImpl'
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Step into: Stepping over method without symbols 'MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance'
A first chance exception of type 'System.Xaml.XamlObjectWriterException' occurred in System.Xaml.dll
Step into: Stepping over method without symbols 'System.Windows.Markup.WpfXamlLoader.Load'
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
追加情報: 「指定されたバインド制約に一致する型 'MainWindow' でのコンストラクターの呼び出しにより、例外がスローされました。」行番号「4」および行位置「9」。
False 行を削除すると、再び機能します。
test.unlocalizable.g.resources に保存されている必要なリソースをロードする方法はありますか?