Repository navigation
[10.x] fix(packaging): restore standalone serializer code generation - #11603
Merged
ReubenBond merged 3 commits intoOct 28, 2026
Merged
Conversation
Preserve generator and analyzer NuGet dependencies with Private=false while keeping their assemblies out of copy-local outputs. ReferenceOutputAssembly=false unintentionally removed those dependencies in dotnet#10035. Exercise isolated consumers of locally packed serialization, extension, runtime and metapackages, including combined references, on net8.0 and net10.0. (cherry picked from commit 9b594f0)
(cherry picked from commit bcf004c)
…ests Restrict copy-local suppression to packable projects. Nonpackable projects retain their prior ReferenceOutputAssembly=false analyzer reference metadata, allowing CodeGenerator.Tests and Analyzers.Tests to load their explicit runtime references. (cherry picked from commit 7bc74ff)
ReubenBond
force-pushed
the
rb-serializer-codegen-backport
branch
from
October 27, 2026 21:26
834bc4b to
8681442
Compare
This was referenced Oct 29, 2026
This was referenced Nov 5, 2026
Bump Microsoft.Orleans.Clustering.AdoNet and Microsoft.Orleans.Runtime
ScarletKuro/Scarlet.Orleans#9
Open
This was referenced Nov 9, 2026
This was referenced Nov 16, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Projects which reference
Microsoft.Orleans.Serializationalone lost their transitive source-generator and analyzer dependencies, so[GenerateSerializer]payloads compile but fail at runtime withCodecNotFoundException. The same packaging metadata affects other packages that enable Orleans build-time code generation.Solution
Preserve the packable generator and analyzer project references as NuGet dependencies using
Private="false", retaining analyzer-only build assets and keeping their assemblies out of copy-local outputs. Nonpackable projects retain their existing reference metadata so test projects can load explicit runtime references to the generator and analyzers.Add isolated package-consumer regression coverage for individual packages and combined SDK/client/server references on .NET 8 and .NET 10, and run it after package validation in CI. Clarify the standalone serialization package's generated codec and copier behavior in its README.
Backport of #11597, cherry-picked from 9b594f0, bcf004c, and 7bc74ff. All commits applied cleanly to
10.x; no branch-specific adaptations were required.Fixes #11582.
Microsoft Reviewers: Open in CodeFlow