none
How to use .NET 4 SplashScreen in a WPF Prism based application?

    Question

  • I am trying to use a .NET 4 SplashScreen in a Prism based WPF application. I have used the SpashScreen by setting the build action on the image to SplashScreen.

    The application used to keep on crashing with a System.Resources.MissingManifestResourceException. Finally I figured out that if I add a StartupUri="MainWindow.xaml" in the App.Xaml file, the SplashScreen works fine.

    <Application x:Class="Application"       
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       
     StartupUri="MainWindow.xaml">  
    </Application> 
    

     

     But in a prism application, we cannot have a StartupUri. Everything is done in the Bootstrapper.

     

    The complete exception message is: System.Resources.MissingManifestResourceException was unhandled

    Message=Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Application.g.resources" was correctly embedded or linked into assembly "Application" at compile time, or that all the satellite assemblies required are loadable and fully signed.

     

    So what do I need to do manually that StartupUri did to make the SplashScreen work?

     


    • Edited by Ganesh Rao Sunday, October 16, 2011 7:27 PM
    Sunday, October 16, 2011 7:26 PM

Answers

All replies