Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silvleright 4 & Splash Screens RSS

4 replies

Last post Nov 05, 2010 02:08 PM by SilverLaw

(0)
  • CraigMuckleston

    CraigMuckleston

    Member

    271 Points

    141 Posts

    Silvleright 4 & Splash Screens

    Jan 05, 2010 10:48 AM | LINK

    In  my 'old' Silverlight 3 apps, I made use of splash screen xaml file homed in my ClientBin folder. I created a new Silvleright 4 application, added the same xaml file to the ClientBin, but now get the following error:

    Error 2 Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list. SL4App.Web

    As soon as I remove the xaml file again, it works. Any ideas how I get around this/why this is happening?

  • suyog kale

    suyog kale

    Contributor

    2548 Points

    528 Posts

    Re: Silvleright 4 & Splash Screens

    Jan 05, 2010 11:03 AM | LINK

    its forword compatibility issue i guess.

    You are trying Silverlight 4 xaml in silverlight 3 project.

    some of new library availble not availalble in silverlight 3 are there in xaml, so during build its poping up issue.

     

     

    (If this has answered your question, please click on "Mark as Answer")

    Thanks & Rgds,
    Suyog Kale

    http://blogs.siliconindia.com/snehyog

    Senior Software Engineer
    ************************************************************
  • Thomas Claudius Huber

    Thomas Claud...

    Star

    8145 Points

    1216 Posts

    Re: Silvleright 4 & Splash Screens

    Jan 05, 2010 11:05 AM | LINK

    Hi Craig,

    it's the Build-Action of your XAML-FIle in the Properties-Window. Select the XAML-File in the Solution-Explorer and go to the Properties-Window of Visual Studio. Set the Build-Action to Content (I think in your case it's Page, so it asks for WPF assemblies. ;) ) and set "Copy to output Directory" to "Always".

    Thomas Claudius Huber
    www.thomasclaudiushuber.com
    Follow me
  • sjb500

    sjb500

    Member

    303 Points

    248 Posts

    Re: Silvleright 4 & Splash Screens

    Sep 09, 2010 10:56 AM | LINK

    Hi. I too am trying to add a custom splash screen using http://weblogs.asp.net/lduveau/archive/2009/09/05/tutorial-create-a-custom-silverlight-splash-screen.aspx to a SL 4 (Business App) and failing miserably. The tip from Thomas has certainly removed the error about windowsbase etc (thanks) but instead I now get errors re ag_e_parser_missing_default_namespace and then issues around rootelement etc.

    Has anyone managed to get it to work with SL4? If so help would be much appreciated. Thanks

    SL always seems to make everything unnecessarily complicated and for little benefit 

  • SilverLaw

    SilverLaw

    Participant

    1079 Points

    126 Posts

    Re: Re: Silvleright 4 & Splash Screens

    Nov 05, 2010 02:08 PM | LINK

    Vielen Dank Thomas ... Dein Tipp beendet meinen heftigen Kopfschmerz.