Skip to content

Update SystemTextJsonVersion - #76273

Merged
JoeRobich merged 1 commit into
dotnet:mainfrom
WeihanLi:patch-1
Dec 7, 2024
Merged

JoeRobich merged 1 commit into
dotnet:mainfrom
WeihanLi:patch-1

Conversation

@WeihanLi

@WeihanLi WeihanLi commented Dec 5, 2024 •

Copy link
Copy Markdown
Contributor

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
@ghost ghost 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
Comment thread eng/Versions.props
@@ -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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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