Skip to content

[release/9.0-staging] Bump System.Text.Json toolset version #113385

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

Open
wants to merge 2 commits into
base: release/9.0-staging
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Backport of #113384 to release/9.0-staging

/cc @steveisok

Customer Impact

  • Customer reported
  • Found internally

[Select one or both of the boxes. Describe how this issue impacts customers, citing the expected and actual behaviors and scope of the issue. If customer-reported, provide the issue number.]

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

@ericstj
Copy link
Member

ericstj commented Mar 11, 2025

Do any of the tasks that use this ship in the product - and if so - can we guarantee that every VS version that supports 9.0 will have this update to MSBuild?

@steveisok
Copy link
Member

Do any of the tasks that use this ship in the product - and if so - can we guarantee that every VS version that supports 9.0 will have this update to MSBuild?

@akoeplinger indicated VS 17.4 has the 9 bump. Is that the min VS version for 9?

https://github.com/dotnet/msbuild/blob/vs17.14/src/MSBuild/app.config#L107-L110

@akoeplinger
Copy link
Member

Is that the min VS version for 9?

No:

image

@steveisok steveisok requested a review from ericstj March 25, 2025 19:28
<PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataToolsetVersion)" ExcludeAssets="Runtime" PrivateAssets="All" />
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonToolsetVersion)" ExcludeAssets="Runtime" PrivateAssets="All" NoWarn="NU1901;NU1902;NU1903;NU1904" />
<PackageDownloadAndReference Include="Microsoft.Bcl.AsyncInterfaces" Version="$(MicrosoftBclAsyncInterfacesToolsetVersion)" Folder="lib/net462" />
<PackageDownloadAndReference Include="System.Buffers" Version="$(SystemBuffersToolsetVersion)" Folder="lib/net461" />
Copy link
Member

@akoeplinger akoeplinger Mar 26, 2025

Choose a reason for hiding this comment

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

should we reference ref/net45 instead of the lib assembly? or does it not matter?

Copy link
Member

@ViktorHofer ViktorHofer Mar 26, 2025

Choose a reason for hiding this comment

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

Yes, the nearest ref assembly should be referenced if there's one. In this case there is one.

Copy link
Member

@ViktorHofer ViktorHofer Mar 26, 2025

Choose a reason for hiding this comment

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

The other two packages that have a ref folder are fine as-is as they don't have a ref for .NET Framework:

  • System.Threading.Tasks.Extensions
  • System.Memory

@carlossanlop
Copy link
Member

carlossanlop commented Apr 2, 2025

@steveisok Friendly reminder that code complete is on April 14th for the May Release. If you'd like to get this change included in that release, please get a Tactics approval (if product change) and merge this PR before that date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants