Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep our System.Text.Json version used in HostModel in sync with MSBuild #101199

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

jkoritzinsky
Copy link
Member

This follows the same pattern as Roslyn, and ensures that the binding redirects in MSBuild kick in on .NET Framework.

This also happens to help unblock dotnet/installer#19491 by working around the downgrade problem.

…ild.

This follows the same pattern as Roslyn, and ensures that the binding redirects in MSBuild kick in on .NET Framework.

This also happens to help unblock dotnet/installer#19491 by working around the downgrade problem.
@jkoritzinsky jkoritzinsky added the area-HostModel Microsoft.NET.HostModel issues label Apr 17, 2024
@jkoritzinsky jkoritzinsky requested review from agocke, mmitche, elinor-fung and a team April 17, 2024 18:11
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@mmitche mmitche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkoritzinsky jkoritzinsky merged commit 989f62c into dotnet:main Apr 17, 2024
3 checks passed
@jkoritzinsky jkoritzinsky deleted the stj-toolset branch April 17, 2024 20:33
<SystemReflectionMetadataLoadContextToolsetVersion Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(SystemReflectionMetadataLoadContextVersion)</SystemReflectionMetadataLoadContextToolsetVersion>
<SystemTextJsonToolsetVersion Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(SystemTextJsonVersion)</SystemTextJsonToolsetVersion>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we override SystemCollectionsImmutableToolsetVersion and SystemReflectionMetadataToolsetVersion too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have source-build-reference-packages for them for the versions we use, so it's not necessary. We could for consistency.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that SBRP can only be used when the assembly in question doesn't get loaded which isn't true for build tasks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSBuild loads these ones in this case (that's why we're trying to version-match)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer the consistency

matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-HostModel Microsoft.NET.HostModel issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants