microsoft/WindowsAppSDK

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

Open

#1 229 ouverte le 12 août 2021

Voir sur GitHub
 (1 commentaire) (0 réactions) (1 assigné)C++ (453 forks)auto 404
area-MRTCorefeature proposalgood first issue

Métriques du dépôt

Stars
 (4 628 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur