Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在WPF中制作不可本地化的SplashScreen_Wpf_Exception_Localization_Internationalization_Satellite Assembly - Fatal编程技术网

如何在WPF中制作不可本地化的SplashScreen

如何在WPF中制作不可本地化的SplashScreen,wpf,exception,localization,internationalization,satellite-assembly,Wpf,Exception,Localization,Internationalization,Satellite Assembly,我只是将国际化添加到我的下一个WPF应用程序中 然后我注意到卫星DLL中会有相当数量的复制,因此将不会在.csproj中本地化的图像标记为 <Localizable>False</Localizable> 当执行Show调用时,会抛出一个异常。这是异常输出 A first chance exception of type 'System.IO.IOException' occurred in WindowsBase.dll A first chance exceptio

我只是将国际化添加到我的下一个WPF应用程序中

然后我注意到卫星DLL中会有相当数量的复制,因此将不会在.csproj中本地化的图像标记为

<Localizable>False</Localizable>
当执行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”

当我删除错误行时,它会再次工作

有没有办法加载存储在test.unlocalizable.g.resources中的我想要的资源

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