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
[sourcecode language=”xml”]
<?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>
[/sourcecode]
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 on “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”.””
[…] Client Devices … Fix available for Root Certificate Update issue on Windows Server … SDK update for Windows Phone 7.8 – invalid child element "AppExtra" Solution to: The element "Deployment" in namespace […]
Did not work for me … same error as before
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
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)
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
It worked for me after I moved that file.
Thank you π
Hi, thank you for your comment, the Microsoft.Phone.PreImport.targets should be modified and not moved. I updated my post. Thank you for your support.
Hello Eclipses,
I just tried your solution and it didn’t work for me at all either.
π
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.
thank you!!!!!!
Hi Luca,
thank you for your comment π
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 ?
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 ?
Hi Amar,
thank you for your comments. Yes, you have to follow my steps.
Hi Eclipses,
The file ‘Microsoft.Phone.PreImport.targets’ has to be renamed or moved or modified.?
Any suggestion?
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_
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.?
Hi Amar, tag.
thank you for your comment. I created my apps for using 7.8 sdk and in my last update I added Windows Phone 8 tiles functionality with
If you want to create app for Windows Phone 8 you need a PC with Windows 8 64-bit, you can read the official system requirements in the following link:
http://www.microsoft.com/en-us/download/details.aspx?id=35471
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.
I did exactly what you said, no errors but still didnt get the wide tile functionality. Executed on wp7.8 emulator and vs2010.
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 .