microsoft/WindowsAppSDK

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

Open

#1229 aperta il 12 ago 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (1 assegnatario)C++ (453 fork)auto 404
area-MRTCorefeature proposalgood first issue

Metriche repository

Star
 (4628 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor