Skip to content

Fix source generator snapshot ordering - #2303

Merged
AArnott merged 1 commit into
masterfrom
fix/source-generator-resource-order
Sep 17, 2026
Merged

AArnott merged 1 commit into
masterfrom
fix/source-generator-resource-order

Conversation

@AArnott

@AArnott AArnott commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix source-generator snapshot tests that depend on the non-deterministic order returned by Assembly.GetManifestResourceNames().

The verifier now orders expected generated sources as the generator emits them: the resolver first, followed by ordinally ordered formatter sources.

Validation

dotnet test tests\MessagePack.SourceGenerator.Tests\MessagePack.SourceGenerator.Tests.csproj -c Release --no-restore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AArnott AArnott added this to the v3.1 milestone Sep 17, 2026
@AArnott
AArnott merged commit 0e0bdff into master Sep 17, 2026
4 checks passed
@AArnott
AArnott deleted the fix/source-generator-resource-order branch September 17, 2026 17:44
This was referenced Sep 17, 2026
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