Skip to content

Downgrade Newtonsoft.Json to version 13.0.3#6155

Closed
akoeplinger wants to merge 1 commit intomainfrom
akoeplinger-patch-1
Closed

Downgrade Newtonsoft.Json to version 13.0.3#6155
akoeplinger wants to merge 1 commit intomainfrom
akoeplinger-patch-1

Conversation

@akoeplinger
Copy link
Copy Markdown
Member

@akoeplinger akoeplinger commented Mar 31, 2026

This seems to be causing issues in arcade because msbuild redistributes 13.0.3 and 13.0.4 introduced a new API that will get bound and then cause:

System.MissingMethodException->Microsoft.Build.Framework.BuildException.GenericBuildTransferredException: Method not found: 'System.String Newtonsoft.Json.Linq.JToken.ToString(Newtonsoft.Json.Formatting)'.
D:\a\_work\1\s\.packages\microsoft.dotnet.arcade.sdk\11.0.0-beta.26180.3\tools\VisualStudio.VsixBuild.targets(155,5): error MSB4018: The "Microsoft.DotNet.Build.Tasks.VisualStudio.FinalizeInsertionVsixFile" task failed unexpectedly.

Let's downgrade it for now. See FR thread.

This seems to be causing issues in arcade because msbuild redistributes 13.0.3 and 13.0.4 introduced a new API that will get bound and then cause:

```
System.MissingMethodException->Microsoft.Build.Framework.BuildException.GenericBuildTransferredException: Method not found: 'System.String Newtonsoft.Json.Linq.JToken.ToString(Newtonsoft.Json.Formatting)'.
D:\a\_work\1\s\.packages\microsoft.dotnet.arcade.sdk\11.0.0-beta.26180.3\tools\VisualStudio.VsixBuild.targets(155,5): error MSB4018: The "Microsoft.DotNet.Build.Tasks.VisualStudio.FinalizeInsertionVsixFile" task failed unexpectedly.
```
Copilot AI review requested due to automatic review settings March 31, 2026 19:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Downgrades Newtonsoft.Json to avoid an MSBuild/VSIX task runtime binding failure caused by MSBuild redistributing Newtonsoft.Json 13.0.3 while the repo was referencing 13.0.4.

Changes:

  • Downgrade Newtonsoft.Json from 13.0.4 to 13.0.3 via Central Package Management (Directory.Packages.props).

akoeplinger added a commit to dotnet/arcade that referenced this pull request Mar 31, 2026
Alternative fix to dotnet/arcade-services#6155 which forces the old overload that exists in Newtonsoft.Json 13.0.3
@akoeplinger akoeplinger closed this Apr 1, 2026
@akoeplinger akoeplinger deleted the akoeplinger-patch-1 branch April 1, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants