Skip to content

Commit 4fc3df2

Browse files
authored
Fix incremental servicing condition (#95119)
* Fix incremental servicing condition Makes non shipping packages always ship during servicing * Update packaging.targets * Update Directory.Build.props * Update Microsoft.Internal.Runtime.AspNetCore.Transport.proj * Update Microsoft.Internal.Runtime.WindowsDesktop.Transport.proj * Update packaging.targets
1 parent b56fb2a commit 4fc3df2

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

eng/packaging.targets

+10-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@
2121
<ApiCompatIgnoreTargetPlatformMoniker Condition="'$(SuppressDependenciesWhenPacking)' == 'true'">true</ApiCompatIgnoreTargetPlatformMoniker>
2222
<PackageDesignerMarkerFile>$(MSBuildThisFileDirectory)useSharedDesignerContext.txt</PackageDesignerMarkerFile>
2323
<PackageReadmeFile Condition="'$(PackageReadmeFile)' == '' and Exists('PACKAGE.md')">PACKAGE.md</PackageReadmeFile>
24+
<!-- Non-shipping packages shouldn't incrementally serviced. -->
25+
<PackageUseIncrementalServicingVersion Condition="'$(IsShipping)' != 'true'">false</PackageUseIncrementalServicingVersion>
2426
<!-- Generate packages for rid specific projects or for allconfigurations during build. -->
2527
<!-- A package isn't generated if in servicing or in runtimelab. Intended to be overridden at project level. -->
2628
<IsRIDSpecificProject Condition="$(MSBuildProjectName.StartsWith('runtime.')) and
2729
!$(MSBuildProjectName.StartsWith('runtime.native'))">true</IsRIDSpecificProject>
28-
<GeneratePackageOnBuild Condition="('$(BuildAllConfigurations)' == 'true' or
29-
'$(IsRIDSpecificProject)' == 'true') and
30-
'$(PreReleaseVersionLabel)' != 'servicing' and
30+
<GeneratePackageOnBuild Condition="(
31+
'$(BuildAllConfigurations)' == 'true' or
32+
'$(IsRIDSpecificProject)' == 'true'
33+
) and
34+
(
35+
'$(PreReleaseVersionLabel)' != 'servicing' or
36+
'$(PackageUseIncrementalServicingVersion)' != 'true'
37+
) and
3138
'$(GitHubRepositoryName)' != 'runtimelab'">true</GeneratePackageOnBuild>
3239
<!-- When in source-build we need to generate all packages when building for all configurations even in servicing. -->
3340
<GeneratePackageOnBuild Condition="'$(GeneratePackageOnBuild)' != 'true' and

src/libraries/Microsoft.Internal.Runtime.AspNetCore.Transport/src/Microsoft.Internal.Runtime.AspNetCore.Transport.proj

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
<NoWarn>$(NoWarn);NU5131</NoWarn>
1414
</PropertyGroup>
1515

16-
<!-- Always generate this package during servicing to flow the dependency to AspNetCore. -->
17-
<PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing'">
18-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
19-
<ServicingVersion>$(PatchVersion)</ServicingVersion>
20-
</PropertyGroup>
21-
2216
<ItemGroup>
2317
<!-- Requires Private=true to calculate ReferenceCopyLocalPaths items. -->
2418
<ProjectReference Include="@(AspNetCoreAppLibrary->'$(LibrariesProjectRoot)%(Identity)\src\%(Identity).csproj')"

src/libraries/Microsoft.Internal.Runtime.WindowsDesktop.Transport/src/Microsoft.Internal.Runtime.WindowsDesktop.Transport.proj

-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
<NoWarn>$(NoWarn);NU5131;NU5128</NoWarn>
1313
</PropertyGroup>
1414

15-
<!-- Always generate this package during servicing to flow the dependency to WindowsDesktop. -->
16-
<PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing'">
17-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
18-
<ServicingVersion>$(PatchVersion)</ServicingVersion>
19-
</PropertyGroup>
20-
2115
<ItemGroup>
2216
<!-- Requires Private=true to calculate ReferenceCopyLocalPaths items.
2317
ReferringTargetFramework is set to $(NetCoreAppCurrent)-windows so that we pack the Windows specific implementation assemblies -->

0 commit comments

Comments
 (0)