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

Update SystemTextJsonVersion #76273

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Update SystemTextJsonVersion #76273

merged 1 commit into from
Dec 7, 2024

Conversation

WeihanLi
Copy link
Contributor

@WeihanLi WeihanLi commented Dec 5, 2024

fix vulnerability nuget audit

image

msbuild already using the 8.0.5 version

image

@WeihanLi WeihanLi requested a review from a team as a code owner December 5, 2024 00:28
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 5, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Dec 5, 2024
@@ -61,7 +61,7 @@
<SystemSecurityPermissionsVersion>8.0.0</SystemSecurityPermissionsVersion>
<!-- Note: When updating SystemTextJsonVersion ensure that the version is no higher than what is used by MSBuild. -->
Copy link
Member

Choose a reason for hiding this comment

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

msbuild already using the 8.0.5 version

msbuild main is using STJ 8.0.5, but isn't this comment trying to say that the msbuild which roslyn is referencing should be using STJ 8.0.5? (and I'm not sure if that's the case)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, I'm not sure either.

While from the NuGet package dependencies, seems there's no dependency for Microsoft.Build in the package I referenced Microsoft.CodeAnalysis.CSharp.Features
Think maybe it's related to the MSBuild version in VS/VSCode, and from the latest Microsoft.Build version released last month, it's also using the 8.0.5 System.Text.Json`

Copy link
Member

Choose a reason for hiding this comment

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

If I recall, it has to do with VS insertions. At one point we tried to insert with a version higher than MSBuild and it caused NGen errors. We should be fine to take this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants