{{ message }}
Convert mpc and msbuild task package to a roslyn source generator#1599
Merged
Conversation
- remove project dependency - update dependency package version
The source generator will altogether deprecate this.
It presumably should be 3.8, but it doesn't compile with 3.8 at this point.
This will help with cacheability.
This was referenced Jun 15, 2026
Merged
Merged
This was referenced Jun 22, 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.

This completely replaces mpc and the msbuild task package with a C# roslyn Source Generator.
NuGet package impact:
MessagePack.MSBuild.TasksMessagePack.SourceGeneratorMessagePack.Generatormpc. Unity users should now consume the source generator contained in theMessagePack.SourceGenerator.Unity.zipfile.MessagePack.SourceGeneratorMessagePack.SourceGenerator.Unity.zipIdeas for future work (after this PR)
[MessagePackFormatter]attribute on each[MessagePackObject](provided the class is declared aspartial) so that the default in-library resolvers will find the source generated formatter.MessagePackFormatterAttributederives fromIMessagePackFormatter<T>is only performed for one possible place where the attribute can appear instead of everywhere it may appear. Field and property searches are also repeated in many places, again with inconsistent code handling them.Remaining tasks
FullModeltype hierarchy has functional equality comparers.Compile Removeitems in the source generator test projects.Closes #1495