From 4de0a68a01e28b92d58e1943d1c82d8847e30494 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Fri, 15 Nov 2024 15:45:27 +0000 Subject: [PATCH] Build installers at the end of the repo build Build the Installer projects after everythign else got built by adding a new Traversal project that builds all P2Ps in it in parallel. Fixes https://github.com/dotnet/aspnetcore/issues/58984 Unblocks https://github.com/dotnet/sdk/pull/44828 --- eng/Build.props | 71 ++----------------------------------------- eng/Installers.proj | 74 +++++++++++++++++++++++++++++++++++++++++++++ global.json | 3 +- 3 files changed, 79 insertions(+), 69 deletions(-) create mode 100644 eng/Installers.proj diff --git a/eng/Build.props b/eng/Build.props index b6a70dfd94eee..908353850c32c 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -71,74 +71,6 @@ - - <_BuildWindowsInstallers Condition="'$(BuildInstallers)' == 'true' AND '$(TargetOsName)' == 'win' AND ('$(TargetArchitecture)' == 'x86' OR '$(TargetArchitecture)' == 'x64' OR '$(TargetArchitecture)' == 'arm64') ">true - <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'x86' ">Win32 - <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'x64' ">x64 - <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'arm64' ">ARM64 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -269,6 +201,9 @@ + + + diff --git a/eng/Installers.proj b/eng/Installers.proj new file mode 100644 index 0000000000000..1cbb7b99028ee --- /dev/null +++ b/eng/Installers.proj @@ -0,0 +1,74 @@ + + + + + + <_BuildWindowsInstallers Condition="'$(TargetOsName)' == 'win' and ('$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'arm64')">true + <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'x86' ">Win32 + <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'x64' ">x64 + <_WixTargetPlatform Condition="'$(TargetArchitecture)' == 'arm64' ">ARM64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/global.json b/global.json index ef86f96c32d91..c3a6ce65f0e3f 100644 --- a/global.json +++ b/global.json @@ -28,6 +28,7 @@ }, "msbuild-sdks": { "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.24562.15", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.24562.15" + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.24562.15", + "Microsoft.Build.Traversal": "3.4.0" } }