Deleted 0002-Add-explicit-System.Text.Json-dependency.patch
This commit is contained in:
parent
82aed4262d
commit
4fe08e837a
1 changed files with 0 additions and 73 deletions
|
@ -1,73 +0,0 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Nikola Milosavljevic <nikolam@microsoft.com>
|
|
||||||
Date: Mon, 26 Jun 2023 23:46:46 +0000
|
|
||||||
Subject: [PATCH] Add explicit System.Text.Json dependency
|
|
||||||
|
|
||||||
Adding an excplicit System.Text.Json dependency to prevent transitive dependency to be picked up
|
|
||||||
from PSB, via Microsoft.Build package.
|
|
||||||
|
|
||||||
Backport: https://github.com/dotnet/format/pull/1887
|
|
||||||
---
|
|
||||||
Directory.Packages.props | 1 +
|
|
||||||
eng/Version.Details.xml | 4 ++++
|
|
||||||
eng/Versions.props | 2 ++
|
|
||||||
src/dotnet-format.csproj | 6 ++++++
|
|
||||||
4 files changed, 13 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/Directory.Packages.props b/Directory.Packages.props
|
|
||||||
index 6b628c22..c9f86593 100644
|
|
||||||
--- a/Directory.Packages.props
|
|
||||||
+++ b/Directory.Packages.props
|
|
||||||
@@ -36,5 +36,6 @@
|
|
||||||
<PackageVersion Include="NuGet.Versioning" Version="$(NuGetVersion)" />
|
|
||||||
<PackageVersion Include="System.CommandLine" Version="$(SystemCommandLineVersion)" />
|
|
||||||
<PackageVersion Include="System.CommandLine.Rendering" Version="$(SystemCommandLineRenderingVersion)" />
|
|
||||||
+ <PackageVersion Include="System.Text.Json" Version="$(SystemTextJsonVersion)" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
||||||
\ No newline at end of file
|
|
||||||
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
|
|
||||||
index cdfa5f5e..86f02b44 100644
|
|
||||||
--- a/eng/Version.Details.xml
|
|
||||||
+++ b/eng/Version.Details.xml
|
|
||||||
@@ -13,6 +13,10 @@
|
|
||||||
<Uri>https://github.com/dotnet/command-line-api</Uri>
|
|
||||||
<Sha>c776cd4e906b669b9cce1017fee7d0ba9845d163</Sha>
|
|
||||||
</Dependency>
|
|
||||||
+ <Dependency Name="System.Text.Json" Version="6.0.8">
|
|
||||||
+ <Uri>https://github.com/dotnet/runtime</Uri>
|
|
||||||
+ <Sha>3241df7f2b0f3e2dada8d07229723c79fdbe4991</Sha>
|
|
||||||
+ </Dependency>
|
|
||||||
</ProductDependencies>
|
|
||||||
<ToolsetDependencies>
|
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.23316.4">
|
|
||||||
diff --git a/eng/Versions.props b/eng/Versions.props
|
|
||||||
index 27582078..bccaf176 100644
|
|
||||||
--- a/eng/Versions.props
|
|
||||||
+++ b/eng/Versions.props
|
|
||||||
@@ -20,6 +20,8 @@
|
|
||||||
<!-- Dependencies from https://github.com/dotnet/command-line-api -->
|
|
||||||
<SystemCommandLineVersion>2.0.0-beta4.22504.1</SystemCommandLineVersion>
|
|
||||||
<SystemCommandLineRenderingVersion>0.4.0-alpha.22504.1</SystemCommandLineRenderingVersion>
|
|
||||||
+ <!-- Dependencies from https://github.com/dotnet/runtime -->
|
|
||||||
+ <SystemTextJsonVersion>6.0.8</SystemTextJsonVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<!--
|
|
||||||
Other Dependency versions
|
|
||||||
diff --git a/src/dotnet-format.csproj b/src/dotnet-format.csproj
|
|
||||||
index 5f691e6e..d812f06b 100644
|
|
||||||
--- a/src/dotnet-format.csproj
|
|
||||||
+++ b/src/dotnet-format.csproj
|
|
||||||
@@ -54,6 +54,12 @@
|
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
|
|
||||||
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" />
|
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" />
|
|
||||||
+
|
|
||||||
+ <!--
|
|
||||||
+ Explicit System.Text.Json package reference is required for source-build to pick up the live package.
|
|
||||||
+ Avoids picking up an old version via transitive dependency from Microsoft.Build or Microsoft.CodeAnalysis.Workspaces.MSBuild.
|
|
||||||
+ -->
|
|
||||||
+ <PackageReference Include="System.Text.Json" Condition=" '$(DotnetBuildFromSource)' == 'true'" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
Loading…
Reference in a new issue