Skip to content

Preserve assembly names without a space after the comma in ResX resources - #15534

Open
XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-resx-assembly-name-whitespace-nov30
Open

XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-resx-assembly-name-whitespace-nov30

Conversation

@XFEstudio

@XFEstudio XFEstudio commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

Read the assembly name or alias starting immediately after the comma in a resource type name and skip any leading whitespace. Use the same parsing code when reading and writing resources.

Customer Impact

The type name System.Drawing.Point,drawing loses the first character of its assembly alias on read. A custom type-name converter that omits the optional space can also write a truncated assembly name. Both cases can prevent a valid resource from loading.

Regression?

Reproduced on .NET 10 and the current main baseline. The introduction point is unknown.

Risk

The existing comma-space form continues to work. The change concerns the whitespace following the separator in the existing type-name parsing path.

Test methodology

Both regression tests failed on the baseline. The original reader and writer test classes then passed all 28 cases on the candidate, with zero skipped. Both builds completed with zero warnings or errors. Windows validation.

Test environment(s)

Windows x64, Debug, repository .NET 12 SDK.

Developed with AI assistance and independently reviewed by an AI agent.

Microsoft Reviewers: Open in CodeFlow

@XFEstudio
XFEstudio requested a review from a team as a code owner November 30, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant