microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 326 forks source link

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

Open MarkIngramUK opened 3 years ago

MarkIngramUK commented 3 years ago

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.

MarkIngramUK commented 3 years ago

As mentioned in https://github.com/microsoft/WindowsAppSDK/issues/1230#issuecomment-897889444, I'm not fully in control of these data names.