SDK update for Windows Phone 7.8 – “The element “Deployment” in namespace “http://schemas.microsoft.com/windowsphone/2009/deployment” has invalid child element “AppExtra”. List of possible elements expected: “App”.”

The element “Deployment” in namespace “http://schemas.microsoft.com/windowsphone/2009/deployment” has invalid child element “AppExtra”. List of possible elements expected: “App”.

In Italian

L’elemento “Deployment” nello spazio dei nomi “http://schemas.microsoft.com/windowsphone/2009/deployment” ha un elemento figlio non valido “AppExtra”. Elenco di possibili elementi previsti: “App”.

Cause:
Installing the Windows Phone 8 SDK, the schema files of the previous version will update too. If you haven’t installed it and you want to work with Visual Studio 2010 you have an old version of schemas that not contains the <AppExtra> node, so the error appears because the xsd file cannot validate your WMAppManifest.xml file with the new lines

<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
  <AppExtra xmlns="" AppPlatformVersion="8.0">
    <Extra Name="Tiles"/>
  </AppExtra>

Solution:
Download and replace the following files inside you Visual Studio 2010 installation folder at the path like this:

C:\\Program Files\\Microsoft Visual Studio 10.0\\Xml\\Schemas

Rename the Microsoft.Phone.PreImport.targets file in

C:\\Program Files\\MSBuild\\Microsoft\\Silverlight for Phone\\v4.0

append “_” at the end of the filename: Microsoft.Phone.PreImport.targets_ (I’m searching other ways for this part of solution)

Close and re-open Visual Studio 2010 then Rebuild your solution.

Did my solution solve your problem? Leave a reply.

21 Replies to “SDK update for Windows Phone 7.8 – “The element “Deployment” in namespace “http://schemas.microsoft.com/windowsphone/2009/deployment” has invalid child element “AppExtra”. List of possible elements expected: “App”.””

    1. Hi mashalla, thank you for your comment, please confirm that you done all the steps in my post and try to close and reopen Visual Studio. Please give me more info so I can try to help you. I suggest you to write your e-mail because will be hidden and so I can reply to your comment

  1. Removes the curly wave πŸ˜‰ but the error remains. Replaced the files, restarted solution (clean, rebuild) and the error remains…….

    (BTW searched the disc for the files and replaced it there Win7 64bits)

    1. Hi PB,
      thank you for your comment. I think that the error was another but with the same text. Try to move the following file
      Microsoft.Phone.PreImport.targets
      from C:\\Program Files\\MSBuild\\Microsoft\\Silverlight for Phone\\v4.0
      to your desktop and let e know if the error disappears

    1. Hi Andrew,
      thank you for your comment, please confirm that you done all the steps in my post and the final close and reopen of Visual Studio 2010. Please give me more info so I can try to help you.

  2. Hi Eclipses,
    I am updating my wp7.5 app.
    I have vs2012 env. To remove the ‘AppExtra’ tag element error, shall I follow these steps? Or does it have anything to do with the vs2010/wp7.5sdk ?

  3. Hi Eclipses,

    my previous post has a mistake……..

    I am updating my wp7.5 app.
    I have vs2010/wp7.5sdk. To remove the β€˜AppExtra’ tag element error, shall I follow these steps? Or does it have anything to do with the vs2010/wp7.5sdk ?

    1. Hi Amar, as written: Rename the Microsoft.Phone.PreImport.targets file in C:\\Program Files\\MSBuild\\Microsoft\\Silverlight for Phone\\v4.0 append β€œ_” at the end of the filename: Microsoft.Phone.PreImport.targets_

  4. Hi,

    I have a xap package. I want to deploy in windows 8 device. But I dont have Windows 8 machine. Is there a way to deploy to my w8 device. Any help.?

  5. Hi,
    I have to display a page in my WP which shows some details, with edit option.
    say for example : employee details.
    First I have to display natively(without editable). Once edit button is clicked then the items should be editable. Can you suggest some UI guidelines for WP regarding my requirement.

  6. I did exactly what you said, no errors but still didnt get the wide tile functionality. Executed on wp7.8 emulator and vs2010.

  7. Did exactly as said, got no errors but still didnt get the wide tile functionality. Please help me out. The app is wp7.1, executed on wp7.8 emulator and developed on vs2010 .

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.