Shared package container definition XML NotWork

%3CLINGO-SUB%20id%3D%22lingo-sub-2394771%22%20slang%3D%22de-DE%22%3EShared%20package%20container%20definition%20XML%20NotWork%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2394771%22%20slang%3D%22de-DE%22%3E%3CP%3EGood%20day%20together%20%3CBR%20%2F%3E%20When%20I%20want%20to%20run%20this%20XML.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CAPPSHAREDPACKAGECONTAINER%3E%3CBR%20%2F%3E%E2%80%AF%E2%80%AF%E2%80%AF%E2%80%AF%3CPACKAGEFAMILY%3EMainApp_8wekyb3d8bbwe%22%20%2F%26gt%3B%3CBR%20%2F%3E%E2%80%AF%E2%80%AF%E2%80%AF%E2%80%AF%3CPACKAGEFAMILY%3E%3C%2FPACKAGEFAMILY%3E%3CBR%20%2F%3E%E2%80%AF%E2%80%AF%E2%80%AF%E2%80%AF%3CPACKAGEFAMILY%3E%3C%2FPACKAGEFAMILY%3E%3CBR%20%2F%3E%3C%2FPACKAGEFAMILY%3E%3C%2FAPPSHAREDPACKAGECONTAINER%3E%3C%2FP%3E%3CP%3EI%20get%20this%20error.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20PS%20C%3A-WINDOWS-system32%26gt%3B%20Add-AppSharedPackageContainer%20-Path%20%22C%3A%22PKG-MSIX-Cbdeployment.xml%22%20%3CBR%20%2F%3E%20Add-AppSharedPackageContainer%20%3A%20The%20'%20'%20character%2C%20hexadecimal%20value%200x202F%2C%20cannot%20be%20included%20in%20a%20name.%20Line%202%2C%20%3CBR%20%2F%3E%20position%2027.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%20%3CBR%20%2F%3E%20%2B%20Add-AppSharedPackageContainer%20-Path%20%22C%3A%22PKG-MSIX-Cbdeployment.xml%22%20%3CBR%20%2F%3E%20%2B%20%22%3A)%22%20%3CBR%20%2F%3E%20%5BAdd-AppSharedPackageContainer%5D%2C%20XmlException%20%3CBR%20%2F%3E%20%2B%20FullyQualifiedErrorId%20%3A%20System.XML.XmlException%2CMicrosoft.Windows.app.SharedPackageContainerManager.Commands.A%20%3CBR%20%2F%3E%20ddAppSharedPackageContainerCmdlet%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EBut%20this%20version%20works%20for%20me%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3CAPPSHAREDPACKAGECONTAINER%20name%3D%22%26quot%3BCBTestMSIXContainer%26quot%3B%22%3E%3CBR%20%2F%3E%3CPACKAGEFAMILY%20name%3D%22%26quot%3BMicrosoftBuildofOpenJDKwithHotspot11.0.10_vf59x763w1qwm%26quot%3B%22%3E%3C%2FPACKAGEFAMILY%3E%3CBR%20%2F%3E%3CPACKAGEFAMILY%20name%3D%22%26quot%3BJRABackgammon-1.0-CB_vf59x763w1qwm%26quot%3B%22%3E%3C%2FPACKAGEFAMILY%3E%3CBR%20%2F%3E%3C%2FAPPSHAREDPACKAGECONTAINER%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A-WINDOWS-system32%26gt%3B%20Add-AppSharedPackageContainer%20-Path%20%22C%3A%22PKG%22MSIX-JavaSPC.xml%22%3C%2FP%3E%3CP%3EId%20Name%20%3CBR%20%2F%3E%20--%20----%20%3CBR%20%2F%3E%207f49ecdc-6bb3-426f-8b2b-77602f6e1420%20CBTestMSIXContainer%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20check%20this%20and%20adjust%20accordingly%20on%20the%20website%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%3EFriendly%20greetings%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPeter%20Fankhauser%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409386%22%20slang%3D%22en-US%22%3ERe%3A%20Shared%20package%20container%20definition%20XML%20NotWork%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409386%22%20slang%3D%22en-US%22%3EThanks%20so%20much%20for%20posting.%20We'll%20look%20into%20the%20issue%20and%20updates%20the%20documentation%20accordingly.%3C%2FLINGO-BODY%3E
New Contributor

Good day together
When I want to run this XML.

<?xml version="1.0" encoding="utf-8"?>
<AppSharedPackageContainer Name="ContosoContainer">
    <PackageFamily Name="Fabrikam.MainApp_8wekyb3d8bbwe" />
    <PackageFamily Name="Contoso.MainApp_8wekyb3d8bbwe" />
    <PackageFamily Name="ContosoCustomize_7xekyb3d8ccde" />
</AppSharedPackageContainer>

I get this error.

PS C:\WINDOWS\system32> Add-AppSharedPackageContainer -Path "C:\PKG\MSIX\Cbdeployment.xml"
Add-AppSharedPackageContainer : The ' ' character, hexadecimal value 0x202F, cannot be included in a name. Line 2,
position 27.
At line:1 char:1
+ Add-AppSharedPackageContainer -Path "C:\PKG\MSIX\Cbdeployment.xml"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-AppSharedPackageContainer], XmlException
+ FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.Windows.App.SharedPackageContainerManager.Commands.A
ddAppSharedPackageContainerCmdlet

 

But this version works for me

<?xml version="1.0" encoding="utf-8"?>
<AppSharedPackageContainer Name="CBTestMSIXContainer">
<PackageFamily Name="MicrosoftBuildofOpenJDKwithHotspot11.0.10_vf59x763w1qwm"></PackageFamily>
<PackageFamily Name="JRABackgammon-1.0-CB_vf59x763w1qwm"></PackageFamily>
</AppSharedPackageContainer>

 

PS C:\WINDOWS\system32> Add-AppSharedPackageContainer -Path "C:\PKG\MSIX\JavaSPC.xml"

Id Name
-- ----
7f49ecdc-6bb3-426f-8b2b-77602f6e1420 CBTestMSIXContainer

 

Can you please check this and adjust accordingly on the website ?

Friendly greetings

Peter Fankhauser

 

 

1 Reply
Thanks so much for posting. We'll look into the issue and updates the documentation accordingly.