Skip to content

Commit 3a25a7f

Browse files
committed
Merge in 'release/6.0' changes
2 parents bfdc5e9 + e9036b0 commit 3a25a7f

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

eng/packaging.targets

+15-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@
3939
<UseIntellisenseDocumentationFile Condition="'$(UseIntellisenseDocumentationFile)' == '' and Exists('$(LibIntellisenseDocumentationFilePath)')">true</UseIntellisenseDocumentationFile>
4040
</PropertyGroup>
4141

42-
<PropertyGroup Condition="'$(ServicingVersion)' != ''">
42+
<PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing'">
43+
<!-- If no servicing version is set we need to default to 0 in order for dependency versions to
44+
be calculated propertly, if we don't set it to 0, we would get the dependency version using the
45+
product Patch Version -->
46+
<ServicingVersion Condition="'$(ServicingVersion)' == ''">0</ServicingVersion>
47+
4348
<!-- Always update the package version in servicing. -->
44-
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</VersionPrefix>
49+
<Version>$(MajorVersion).$(MinorVersion).$(ServicingVersion)</Version>
50+
<Version Condition="'$(VersionSuffix)' != ''">$(Version)-$(VersionSuffix)</Version>
4551
<_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsWindowsDesktopApp>
4652
<_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsAspNetCoreApp>
4753
<_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack>
@@ -267,9 +273,15 @@
267273
</Target>
268274

269275
<Target Name="ValidateAssemblyVersionsInRefPack"
270-
Condition="$(_AssemblyInTargetingPack) == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'"
276+
Condition="'$(SkipValidateAssemblyVersion)' != 'true' and '$(_AssemblyInTargetingPack)' == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'"
271277
AfterTargets="CoreCompile" >
272278
<Error Condition="'$(AssemblyVersion)' != '$(LastReleasedStableAssemblyVersion)'" Text="AssemblyVersion should match last released assembly version $(LastReleasedStableAssemblyVersion)" />
273279
</Target>
274280

281+
<Target Name="ValidateServicingVersionIsPropertlySet"
282+
Condition="'$(PreReleaseVersionLabel)' == 'servicing'"
283+
AfterTargets="GenerateNuspec">
284+
<Error Condition="'$(ServicingVersion)' == '0'" Text="ServicingVersion is set to 0 and it should be an increment of the patch version from the last released package." />
285+
</Target>
286+
275287
</Project>

src/libraries/System.DirectoryServices/Directory.Build.props

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
plan on shipping a new desktop version out of band. Instead add API
66
to a different assembly. -->
77
<AssemblyVersion>4.0.0.0</AssemblyVersion>
8+
<!-- Since this assembly version is pinned, we don't want to validate that it matches
9+
the expected assembly version on the targeting pack. -->
10+
<SkipValidateAssemblyVersion>true</SkipValidateAssemblyVersion>
811
<StrongNameKeyId>Microsoft</StrongNameKeyId>
912
<SupportedOSPlatforms>windows</SupportedOSPlatforms>
1013
</PropertyGroup>

src/libraries/System.Text.Json/src/System.Text.Json.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<Nullable>enable</Nullable>
1010
<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>
1111
<IsPackable>true</IsPackable>
12+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
13+
<ServicingVersion>1</ServicingVersion>
1214
<PackageDescription>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.
1315

1416
Commonly Used Types:

0 commit comments

Comments
 (0)