From 728d7c69573e1bc9c88ce64fab9d0a372a0bb0a8 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 26 Oct 2022 15:49:38 -0400 Subject: [PATCH] source-build: support building aspnetcore using non-portable runtime packages (backport #43937) --- Directory.Build.props | 2 ++ eng/Common.props | 2 ++ eng/Dependencies.props | 2 ++ eng/tools/GenerateFiles/Directory.Build.targets.in | 7 +++++++ .../Wasm.Performance/Driver/Wasm.Performance.Driver.csproj | 2 +- .../src/Microsoft.AspNetCore.App.Runtime.csproj | 5 +++-- src/Tools/Directory.Build.targets | 2 +- 7 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 721f099a7734..9979b084ffc2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -173,6 +173,8 @@ freebsd-x64 + $(SupportedRuntimeIdentifiers);$(TargetRuntimeIdentifier) + true diff --git a/eng/Common.props b/eng/Common.props index a9a69bde9f22..3dcca1c6b54d 100644 --- a/eng/Common.props +++ b/eng/Common.props @@ -6,6 +6,8 @@ freebsd x64 $(TargetOsName)-$(TargetArchitecture) + true + $(TargetRuntimeIdentifier) diff --git a/eng/Dependencies.props b/eng/Dependencies.props index 75c41177ffa6..d39473508c3b 100644 --- a/eng/Dependencies.props +++ b/eng/Dependencies.props @@ -95,6 +95,7 @@ and are generated based on the last package release. + @@ -109,6 +110,7 @@ and are generated based on the last package release. + diff --git a/eng/tools/GenerateFiles/Directory.Build.targets.in b/eng/tools/GenerateFiles/Directory.Build.targets.in index c5206ec8c611..5e693b6d7cc9 100644 --- a/eng/tools/GenerateFiles/Directory.Build.targets.in +++ b/eng/tools/GenerateFiles/Directory.Build.targets.in @@ -39,8 +39,15 @@ ${MicrosoftNETCoreAppRuntimeVersion} + $(TargetRuntimeIdentifier) + + ${MicrosoftNETCoreAppRuntimeVersion} + $(TargetRuntimeIdentifier) + + false true - linux-x64 + linux-x64 diff --git a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj index aeb3c08f1382..a23f607e4921 100644 --- a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj +++ b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj @@ -96,7 +96,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant $(Crossgen2ToolFileName).exe - PkgMicrosoft_NETCore_App_Runtime_$(RuntimeIdentifier) + PkgMicrosoft_NETCore_App_Runtime_$(RuntimeIdentifier.Replace('.', '_')) $(TargetOsName) linux + $(TargetRuntimeIdentifier.Substring(0,$(TargetRuntimeIdentifier.IndexOf('-')))) x64 $(BuildArchitecture) - PkgMicrosoft_NETCore_App_Crossgen2_$(BuildOsName)-$(Crossgen2BuildArchitecture) + PkgMicrosoft_NETCore_App_Crossgen2_$(BuildOsName.Replace('.', '_'))-$(Crossgen2BuildArchitecture) $(AssetTargetFallback);native,Version=0.0 diff --git a/src/Tools/Directory.Build.targets b/src/Tools/Directory.Build.targets index 854f90ab5c20..438ea3da045d 100644 --- a/src/Tools/Directory.Build.targets +++ b/src/Tools/Directory.Build.targets @@ -1,7 +1,7 @@ - win-x64;win-x86 + win-x64;win-x86 false