From e9036b04357e8454439a0e6cf22186a0cb19e616 Mon Sep 17 00:00:00 2001 From: Santiago Fernandez Madero Date: Wed, 17 Nov 2021 09:29:23 -0800 Subject: [PATCH] [release/6.0] Add packaging changes for System.Text.Json (#61703) * [release/6.0] Add packaging changes for System.Text.Json * Fix version calculation when using ServicingVersion for dependencies and current package * Simplify version calculation for servicing * Disable assembly validation for DirectoryServices as its version is pinned --- eng/packaging.targets | 18 +++++++++++++++--- .../Directory.Build.props | 3 +++ .../src/System.Text.Json.csproj | 2 ++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/eng/packaging.targets b/eng/packaging.targets index 72401ef6da0635..9fe4b569e5f703 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -39,9 +39,15 @@ true - + + + 0 + - $(MajorVersion).$(MinorVersion).$(ServicingVersion) + $(MajorVersion).$(MinorVersion).$(ServicingVersion) + $(Version)-$(VersionSuffix) <_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true <_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true <_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true @@ -267,9 +273,15 @@ + + + + diff --git a/src/libraries/System.DirectoryServices/Directory.Build.props b/src/libraries/System.DirectoryServices/Directory.Build.props index bfa544ca6f649e..0740890146a71c 100644 --- a/src/libraries/System.DirectoryServices/Directory.Build.props +++ b/src/libraries/System.DirectoryServices/Directory.Build.props @@ -5,6 +5,9 @@ plan on shipping a new desktop version out of band. Instead add API to a different assembly. --> 4.0.0.0 + + true Microsoft windows diff --git a/src/libraries/System.Text.Json/src/System.Text.Json.csproj b/src/libraries/System.Text.Json/src/System.Text.Json.csproj index bba18ce24edd2a..daff09c980254e 100644 --- a/src/libraries/System.Text.Json/src/System.Text.Json.csproj +++ b/src/libraries/System.Text.Json/src/System.Text.Json.csproj @@ -9,6 +9,8 @@ enable true true + true + 1 Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data. Commonly Used Types: