microsoft/WindowsAppSDK

[MRTCore] MakePri returns an error code when a data element name attribute is longer than 255 characters

Open

#1.229 geöffnet am 12. Aug. 2021

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)C++ (453 Forks)auto 404
area-MRTCorefeature proposalgood first issue

Repository-Metriken

Stars
 (4.628 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Attempting to compile a .resw file with a long data element name attribute will result in the error :

ERROR: PRI175: 0x80070057 - Processing Resources failed with error: The parameter is incorrect.

This 255 character limit doesn't appear to be documented anywhere, and isn't checked on the embedded XSD. For reference, the XSD for this attribute is <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />.

Visual Studio allows you to type in more than 255 characters, so there is a discrepancy there.

Contributor Guide