From 3008f7ef29e0a5593f6f0afbdc9343f573f1a375 Mon Sep 17 00:00:00 2001 Patch-Source: https://github.com/dotnet/installer/pull/14816 From: Antoine Martin Date: Tue, 15 Nov 2022 01:04:07 -0500 Subject: [PATCH 1/3] Eliminate runtime portable build (backport dotnet#14549) --- .../tarball/content/Directory.Build.props | 8 -- .../tarball/content/repos/aspnetcore.proj | 1 + .../tarball/content/repos/installer.proj | 2 +- .../tarball/content/repos/known-good.proj | 1 - .../content/repos/runtime-portable.proj | 47 ----------- .../content/repos/runtime.common.props | 43 ---------- .../content/repos/runtime.common.targets | 46 ----------- .../tarball/content/repos/runtime.proj | 82 ++++++++++++++++++- .../source-build-reference-packages.proj | 4 +- src/redist/targets/Crossgen.targets | 2 +- src/redist/targets/GenerateLayout.targets | 3 + 11 files changed, 88 insertions(+), 151 deletions(-) delete mode 100644 repos/runtime-portable.proj delete mode 100644 repos/runtime.common.props delete mode 100644 repos/runtime.common.targets diff --git a/Directory.Build.props b/Directory.Build.props index 61cc6ff67..2e2d7e8bc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -22,14 +22,6 @@ x64 false - - - false - false - true - false diff --git a/repos/aspnetcore.proj b/repos/aspnetcore.proj index 480f3c713..52243024a 100644 --- a/repos/aspnetcore.proj +++ b/repos/aspnetcore.proj @@ -9,6 +9,7 @@ $(BuildCommandArgs) --no-build-repo-tasks $(BuildCommandArgs) /p:BuildNodeJs=false $(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltAspNetCoreRuntime) + $(BuildCommandArgs) /p:PortableBuild=false /p:TargetRuntimeIdentifier=$(TargetRid) $(BuildCommandArgs) /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.0 diff --git a/repos/installer.proj b/repos/installer.proj index e34337b85..6c08a1f67 100644 --- a/repos/installer.proj +++ b/repos/installer.proj @@ -25,7 +25,7 @@ $(BuildCommandArgs) /p:Rid=$(TargetRid) $(BuildCommandArgs) /p:DOTNET_INSTALL_DIR=$(DotNetCliToolDir) - $(BuildCommandArgs) /p:AspNetCoreInstallerRid=linux-$(Platform) + $(BuildCommandArgs) /p:AspNetCoreInstallerRid=$(TargetRid) $(BuildCommandArgs) /p:CoreSetupRid=freebsd-x64 /p:PortableBuild=true $(BuildCommandArgs) /p:CoreSetupRid=osx-x64 diff --git a/repos/known-good.proj b/repos/known-good.proj index eab516290..12d9943da 100644 --- a/repos/known-good.proj +++ b/repos/known-good.proj @@ -44,7 +44,6 @@ - diff --git a/repos/runtime.proj b/repos/runtime.proj index f3ed143f8..efd8b66fa 100644 --- a/repos/runtime.proj +++ b/repos/runtime.proj @@ -1,18 +1,53 @@ - + + + true + + $(ProjectDirectory)/clean$(ShellExtension) + $(TargetRid) osx-x64 freebsd-x64 win-x64 + <_platformIndex>$(NETCoreSdkRuntimeIdentifier.LastIndexOf('-')) + $(NETCoreSdkRuntimeIdentifier.Substring(0, $(_platformIndex))) + + <_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-')) + $(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex))) + $(StandardSourceBuildArgs) $(BuildCommandArgs) /p:TargetRid=$(OverrideTargetRid) + $(BuildCommandArgs) /p:RuntimeOS=$(RuntimeOS) + $(BuildCommandArgs) /p:BaseOS=$(BaseOS) $(BuildCommandArgs) /p:SourceBuildNonPortable=true $(StandardSourceBuildCommand) $(BuildCommandArgs) + + + $(ProjectDirectory)global.json + $(ProjectDirectory)NuGet.config + false + true + + + + + + + + + + + + + + + + @@ -20,8 +55,49 @@ - - + + + + + + + + + + + + + $(ProjectDirectory)pkg/Microsoft.NETCore.Platforms/runtime.json + + + + + + + + + <_builtRuntimePackages Include="$(SourceBuiltAssetsDir)*.symbols.nupkg" /> + <_builtRuntimePackages> + $([System.String]::Copy('%(FileName)').Replace('symbols', 'nupkg')) + + + + + + + + + + + diff --git a/repos/source-build-reference-packages.proj b/repos/source-build-reference-packages.proj index 69ab564a2..9545b50e4 100644 --- a/repos/source-build-reference-packages.proj +++ b/repos/source-build-reference-packages.proj @@ -2,7 +2,9 @@ - $(StandardSourceBuildCommand) $(StandardSourceBuildArgs) + $(StandardSourceBuildArgs) + $(BuildCommandArgs) /p:MicrosoftNetCoreIlasmPackageRuntimeId=$(NETCoreSdkRuntimeIdentifier) + $(StandardSourceBuildCommand) $(BuildCommandArgs) $(ProjectDirectory)NuGet.config $(ProjectDirectory)global.json -- 2.38.2