On the App Consult team we may work on several different applications in given day. The other day when using Visual Studio 2017 to deploy a UWP app I got the following error:
DEP0600: Deployment failed. XmlException – Data at the root level is invalid. Line 24, position 11.
After much debugging and Binging, an SDE pointed out that I was hitting a known bug in the OS – which will be fixed in the upcoming Fall Creators update. It turns out this is caused by previously deploying another app with a malformed AppxManifest.xml file. I had several test apps installed on my machine some deployed with Visual Studio, some installed with PowerShell using the command:
Add-AppxPackage -Register .PackageLayoutAppxManifest.xml
After uninstalling several of the test apps, I was able to deploy my app with Visual Studio 2017 without problems.
Tip: Learn more about the Desktop Bridge from this excellent Microsoft Virtual Academy course: Developer’s Guide to the Desktop Bridge.