Skip to content

[pull] master from microsoft:master#86

Merged
pull[bot] merged 2 commits into
cgallred:masterfrom
microsoft:master
Apr 16, 2026
Merged

[pull] master from microsoft:master#86
pull[bot] merged 2 commits into
cgallred:masterfrom
microsoft:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 16, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tyrielv added 2 commits April 15, 2026 15:17
Replace Newtonsoft.Json 13.0.1 with System.Text.Json 8.0.5 across the
entire codebase. This eliminates the reflection-heavy Newtonsoft
dependency, a prerequisite for NativeAOT compilation.

Add GVFSJsonOptions.cs with shared JsonSerializerOptions, centralized
Serialize/Deserialize helpers, and registered custom converters.
Add EventMetadataConverter for AOT-safe Dictionary<string,object> handling.
Add VersionConverter for System.Version (no built-in STJ support).
Use runtime type dispatch in BaseResponse<T>.ToMessage() to preserve
derived-class properties during polymorphic serialization.
Replace [JsonProperty] with [JsonPropertyName] in telemetry types.
Replace JObject.Parse with JsonDocument in functional tests.
Change GitObjectSize readonly fields to properties (STJ ignores fields).
Add parameterless constructors where STJ deserialization requires them.
Set LangVersion=latest in Directory.Build.props.
Remove Newtonsoft.Json from all projects and Directory.Packages.props.

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Migrate from Newtonsoft.Json to System.Text.Json
@pull pull Bot locked and limited conversation to collaborators Apr 16, 2026
@pull pull Bot added the ⤵️ pull label Apr 16, 2026
@pull pull Bot merged commit d397062 into cgallred:master Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant