Forum Discussion
VirtualizationManifestSchema needs correction
The version of the VirtualizationManifestSchema.xsd delivered as part of Visual Studio is still incorrect (I reported this about three years ago). It seems like the DesktopAppInstaller either ignores the regex pattern for the ST_ExcludedDirectory element or is using a fixed version for validation anyway. But other toolings depend on the accuracy of the published schema file for XML validation and it needs to be fixed.
As stands, it looks like this:
<xs:simpleType name="ST_ExcludedDirectory">
<xs:restriction base="t:ST_NonEmptyString">
<xs:pattern value="$\([kK][nN][oO][wW][nN][fF][oO][lL][dD][eE][rR]:[A-Za-z0-9]{1,32}\)(\\.+)?"/>
</xs:restriction>
</xs:simpleType>
It should be:
<xs:simpleType name="ST_ExcludedDirectory">
<xs:restriction base="t:ST_NonEmptyString">
<xs:pattern value="\$\([kK][nN][oO][wW][nN][fF][oO][lL][dD][eE][rR]:[A-Za-z0-9]{1,32}\)(\\.+)?"/>
</xs:restriction>
</xs:simpleType>
This change would support the Syntax section shown in the documentation here: virtualization:ExcludedDirectory - Windows UWP applications | Microsoft Learn
1 Reply
NOTE: The xsd file is distributed as part of Visual Studio, which is where 3rd party vendors have to go to get it.