From 752c927cf26a3c57190d46b3635de52cc49b203e Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 31 Dec 2020 11:20:46 +0100 Subject: [PATCH] Allow incremental servicing of packages and more packaging infra cleanup (#46447) * More packaging cleanup * Add incremental package servicing throughout the repo * Update dependencies to 6.0.0-beta.20630.3 --- Directory.Build.props | 17 +++++++---- Directory.Build.targets | 11 ++++++- eng/Version.Details.xml | 4 +-- eng/Versions.props | 2 +- eng/packaging.props | 7 ----- eng/packaging.targets | 11 +++---- global.json | 2 +- src/coreclr/.nuget/Directory.Build.props | 29 ++++++++++++++----- src/coreclr/.nuget/Directory.Build.targets | 7 ++--- ...Microsoft.CrossOsDiag.Private.CoreCLR.proj | 12 ++------ .../.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props | 4 --- .../Microsoft.NET.Sdk.IL/sdk/Sdk.targets | 1 - .../targets/Microsoft.NET.Sdk.IL.targets | 1 - .../Microsoft.NETCore.ILAsm.proj | 1 - .../Microsoft.NETCore.ILDAsm.proj | 1 - .../Microsoft.NETCore.TestHost.proj | 1 - src/coreclr/.nuget/builds.targets | 3 +- src/coreclr/.nuget/coreclr-packages.proj | 13 ++++----- src/coreclr/.nuget/packaging.props | 25 ---------------- src/coreclr/.nuget/versioning.targets | 2 +- src/coreclr/dir.traversal.targets | 20 ------------- src/installer/pkg/projects/host-packages.proj | 11 +++---- src/libraries/pkg/Directory.Build.props | 5 ---- .../Microsoft.NETCore.Platforms.proj | 2 +- .../Microsoft.NETCore.Targets.proj | 2 +- .../netcoreapp.rids.props | 2 +- .../runtime.native.System.IO.Ports.proj | 2 +- src/mono/netcore/nuget/Directory.Build.props | 4 --- .../netcore/nuget/Directory.Build.targets | 8 ++--- src/mono/netcore/nuget/mono-packages.proj | 12 +++----- 30 files changed, 79 insertions(+), 143 deletions(-) delete mode 100644 src/coreclr/.nuget/packaging.props delete mode 100644 src/coreclr/dir.traversal.targets diff --git a/Directory.Build.props b/Directory.Build.props index 3d391c4b443..dad14cfa30c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -207,9 +207,9 @@ runtime - git://github.com/dotnet/runtime - https://github.com/dotnet/runtime - https://github.com/dotnet/runtime/blob/master/LICENSE.TXT + git://github.com/dotnet/$(GitHubRepositoryName) + https://github.com/dotnet/$(GitHubRepositoryName) + https://github.com/dotnet/$(GitHubRepositoryName)/blob/master/LICENSE.TXT $([MSBuild]::NormalizePath('$(LibrariesProjectRoot)', 'pkg', 'Microsoft.NETCore.Platforms', 'runtime.json')) $(MSBuildThisFileDirectory)LICENSE.TXT MIT @@ -220,14 +220,19 @@ true $(MSBuildProjectName.Contains('Experimental')) + $(MSBuildProjectName.Contains('Private')) - true + true false false - - true + + true + false + diff --git a/Directory.Build.targets b/Directory.Build.targets index 764d12bb822..e84ae45d03b 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,4 +1,4 @@ - + + + + + + \ No newline at end of file diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index eaa6e843fb4..0f984d249f9 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -6,7 +6,7 @@ - + https://github.com/dotnet/arcade 3ba79fbd73d6765b67d0f75ac9dac148d6bea346 @@ -38,7 +38,7 @@ https://github.com/dotnet/arcade 3ba79fbd73d6765b67d0f75ac9dac148d6bea346 - + https://github.com/dotnet/arcade 3ba79fbd73d6765b67d0f75ac9dac148d6bea346 diff --git a/eng/Versions.props b/eng/Versions.props index 3de3283befd..888a0119503 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -55,7 +55,7 @@ 6.0.0-beta.20621.12 2.5.1-beta.20621.12 6.0.0-beta.20621.12 - 6.0.0-beta.20621.12 + 6.0.0-beta.20630.3 6.0.0-beta.20621.12 6.0.0-beta.20621.12 6.0.0-beta.20621.12 diff --git a/eng/packaging.props b/eng/packaging.props index 5a2eee17fe5..07c8426ec49 100644 --- a/eng/packaging.props +++ b/eng/packaging.props @@ -31,13 +31,6 @@ $(MSBuildProjectDirectory)\..\pkg\$(MSBuildProjectName).pkgproj - - true - true diff --git a/eng/packaging.targets b/eng/packaging.targets index 30a8caa5cbc..1f19f57c98a 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -1,4 +1,4 @@ - + + - + true _BuildPkgProj diff --git a/global.json b/global.json index 83ebf476de6..a74a53a8bd6 100644 --- a/global.json +++ b/global.json @@ -13,7 +13,7 @@ }, "msbuild-sdks": { "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "6.0.0-beta.20621.12", - "Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.20621.12", + "Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.20630.3", "Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "6.0.0-beta.20621.12", "Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.20621.12", "Microsoft.DotNet.SharedFramework.Sdk": "6.0.0-beta.20621.12", diff --git a/src/coreclr/.nuget/Directory.Build.props b/src/coreclr/.nuget/Directory.Build.props index 1e0b60ec47c..c8c468ebc60 100644 --- a/src/coreclr/.nuget/Directory.Build.props +++ b/src/coreclr/.nuget/Directory.Build.props @@ -1,17 +1,32 @@ - - - - + - - - + + $(Platform) + x64 + win7 + win8 + win10 AnyCPU + $(MSBuildThisFileDirectory)packageIndex.json + + + true + + + 6.0.0 + $(PackageVersion) + + + + + + + diff --git a/src/coreclr/.nuget/Directory.Build.targets b/src/coreclr/.nuget/Directory.Build.targets index eeab2931cf8..365d5ed7a9c 100644 --- a/src/coreclr/.nuget/Directory.Build.targets +++ b/src/coreclr/.nuget/Directory.Build.targets @@ -1,8 +1,5 @@ - - - - - + + - diff --git a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props index d539c1d84bf..95af489da45 100644 --- a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props +++ b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props @@ -12,10 +12,6 @@ Copyright (c) .NET Foundation. All rights reserved. --> - - $(MSBuildThisFileFullPath);$(MSBuildAllProjects) - - diff --git a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets index 564ef191b95..71abf1b1566 100644 --- a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets +++ b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets @@ -13,7 +13,6 @@ Copyright (c) .NET Foundation. All rights reserved. - $(MSBuildThisFileFullPath);$(MSBuildAllProjects) $(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.IL.Common.targets diff --git a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets index 6a286e91706..f9badfc166c 100644 --- a/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets +++ b/src/coreclr/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets @@ -13,7 +13,6 @@ Copyright (c) .NET Foundation. All rights reserved. - $(MSBuildThisFileFullPath);$(MSBuildAllProjects) .il IL Managed diff --git a/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj b/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj index 85918b379ea..0ee4b7e705f 100644 --- a/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj +++ b/src/coreclr/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.proj @@ -1,4 +1,3 @@ - diff --git a/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj b/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj index 85918b379ea..0ee4b7e705f 100644 --- a/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj +++ b/src/coreclr/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.proj @@ -1,4 +1,3 @@ - diff --git a/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj b/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj index 85918b379ea..0ee4b7e705f 100644 --- a/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj +++ b/src/coreclr/.nuget/Microsoft.NETCore.TestHost/Microsoft.NETCore.TestHost.proj @@ -1,4 +1,3 @@ - diff --git a/src/coreclr/.nuget/builds.targets b/src/coreclr/.nuget/builds.targets index 66d4f4e0661..6ae3bf8afcb 100644 --- a/src/coreclr/.nuget/builds.targets +++ b/src/coreclr/.nuget/builds.targets @@ -1,4 +1,3 @@ - true @@ -12,7 +11,7 @@ false - + diff --git a/src/coreclr/.nuget/coreclr-packages.proj b/src/coreclr/.nuget/coreclr-packages.proj index 83b95cd3748..b2ee204645b 100644 --- a/src/coreclr/.nuget/coreclr-packages.proj +++ b/src/coreclr/.nuget/coreclr-packages.proj @@ -1,7 +1,9 @@ - - + + + BuildAllProjects=true + - + @@ -13,10 +15,5 @@ - - - - - diff --git a/src/coreclr/.nuget/packaging.props b/src/coreclr/.nuget/packaging.props deleted file mode 100644 index 3354bcf8230..00000000000 --- a/src/coreclr/.nuget/packaging.props +++ /dev/null @@ -1,25 +0,0 @@ - - - - $(Platform) - x64 - win7 - win8 - win10 - - $(MSBuildThisFileDirectory)packageIndex.json - - - true - - - 6.0.0 - - false - $(PackageVersion) - - - - - - diff --git a/src/coreclr/.nuget/versioning.targets b/src/coreclr/.nuget/versioning.targets index 6c7ccd3ebc3..f986cdcd987 100644 --- a/src/coreclr/.nuget/versioning.targets +++ b/src/coreclr/.nuget/versioning.targets @@ -4,7 +4,7 @@ We depend on this private Arcade target instead of the SDK-defined GetAssemblyVersion since the packaging build does not use the .NET SDK --> diff --git a/src/coreclr/dir.traversal.targets b/src/coreclr/dir.traversal.targets deleted file mode 100644 index 96ad070bb4a..00000000000 --- a/src/coreclr/dir.traversal.targets +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/installer/pkg/projects/host-packages.proj b/src/installer/pkg/projects/host-packages.proj index 705c3c92dcc..db9a28ff1a0 100644 --- a/src/installer/pkg/projects/host-packages.proj +++ b/src/installer/pkg/projects/host-packages.proj @@ -1,5 +1,7 @@ - - + + + BuildAllProjects=true + @@ -8,9 +10,4 @@ - - - - - diff --git a/src/libraries/pkg/Directory.Build.props b/src/libraries/pkg/Directory.Build.props index de0f39ad4d7..4c9f061316e 100644 --- a/src/libraries/pkg/Directory.Build.props +++ b/src/libraries/pkg/Directory.Build.props @@ -39,9 +39,4 @@ - - - true - - diff --git a/src/libraries/pkg/Microsoft.NETCore.Platforms/Microsoft.NETCore.Platforms.proj b/src/libraries/pkg/Microsoft.NETCore.Platforms/Microsoft.NETCore.Platforms.proj index 059a85c0247..2f057db4945 100644 --- a/src/libraries/pkg/Microsoft.NETCore.Platforms/Microsoft.NETCore.Platforms.proj +++ b/src/libraries/pkg/Microsoft.NETCore.Platforms/Microsoft.NETCore.Platforms.proj @@ -1,7 +1,7 @@ - + diff --git a/src/libraries/pkg/Microsoft.NETCore.Targets/Microsoft.NETCore.Targets.proj b/src/libraries/pkg/Microsoft.NETCore.Targets/Microsoft.NETCore.Targets.proj index 5e5f59ceed9..e4f0168e85a 100644 --- a/src/libraries/pkg/Microsoft.NETCore.Targets/Microsoft.NETCore.Targets.proj +++ b/src/libraries/pkg/Microsoft.NETCore.Targets/Microsoft.NETCore.Targets.proj @@ -1,7 +1,7 @@ - + diff --git a/src/libraries/pkg/runtime.native.System.IO.Ports/netcoreapp.rids.props b/src/libraries/pkg/runtime.native.System.IO.Ports/netcoreapp.rids.props index bb1e49feec9..c5cf15fa735 100644 --- a/src/libraries/pkg/runtime.native.System.IO.Ports/netcoreapp.rids.props +++ b/src/libraries/pkg/runtime.native.System.IO.Ports/netcoreapp.rids.props @@ -1,5 +1,5 @@  - + arm diff --git a/src/libraries/pkg/runtime.native.System.IO.Ports/runtime.native.System.IO.Ports.proj b/src/libraries/pkg/runtime.native.System.IO.Ports/runtime.native.System.IO.Ports.proj index 07146c206fd..a1ec1ea4bd1 100644 --- a/src/libraries/pkg/runtime.native.System.IO.Ports/runtime.native.System.IO.Ports.proj +++ b/src/libraries/pkg/runtime.native.System.IO.Ports/runtime.native.System.IO.Ports.proj @@ -1,7 +1,7 @@ - + diff --git a/src/mono/netcore/nuget/Directory.Build.props b/src/mono/netcore/nuget/Directory.Build.props index 4630ccface1..10b898493df 100644 --- a/src/mono/netcore/nuget/Directory.Build.props +++ b/src/mono/netcore/nuget/Directory.Build.props @@ -1,5 +1,4 @@ - @@ -13,13 +12,10 @@ 6.0.0 - - false $(PackageVersion) - diff --git a/src/mono/netcore/nuget/Directory.Build.targets b/src/mono/netcore/nuget/Directory.Build.targets index 568d3d34aed..bb62b358d1b 100644 --- a/src/mono/netcore/nuget/Directory.Build.targets +++ b/src/mono/netcore/nuget/Directory.Build.targets @@ -1,8 +1,4 @@ - - - - - + + - diff --git a/src/mono/netcore/nuget/mono-packages.proj b/src/mono/netcore/nuget/mono-packages.proj index ffb83694dcf..0bea7633761 100644 --- a/src/mono/netcore/nuget/mono-packages.proj +++ b/src/mono/netcore/nuget/mono-packages.proj @@ -1,5 +1,7 @@ - - + + + BuildAllProjects=true + @@ -13,10 +15,4 @@ - - - - - -