Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

@NikolaMilosavljevic NikolaMilosavljevic commented Oct 8, 2025

This includes the following changes:

  • Update to CreateWixBuildWixpack to support additional build/compilation options
  • Update to shared infra to pass -bcgg to wix build and wixpack task
  • Update to aspnetcore and sdk infra to add -bcgg to Compiler options, and utilize AdditionalOptions in wixpack task to have the same option during wix repack
  • wix 5 update to support -bcgg option

Copilot AI review requested due to automatic review settings October 8, 2025 23:45
@dotnet-policy-service dotnet-policy-service bot requested review from a team October 8, 2025 23:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces backward-compatible GUID generation in Wix 5 by adding the -bcgg flag across multiple build infrastructure components. The change ensures consistency in GUID generation between Wix versions to maintain compatibility.

Key Changes

  • Added AdditionalOptions parameter to CreateWixBuildWixpack task to support passing additional compiler flags
  • Configured build targets to automatically pass the -bcgg flag through compiler and linker options
  • Updated shared infrastructure to propagate additional options through the wix build and wixpack processes

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/arcade/src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateWixBuildWixpack.cs Added AdditionalOptions property and logic to include additional command line arguments
src/arcade/src/Microsoft.DotNet.Build.Tasks.Installers/build/wix5/wix.targets Added WixAdditionalOptions property with -bcgg flag and wired it through build process
src/sdk/src/Layout/pkg/windows/Directory.Build.targets Added SetAdditionalWixOptions target and passed options to CreateWixBuildWixpack task
src/aspnetcore/src/Installers/Windows/Wix.targets Added SetAdditionalWixOptions target and passed options to CreateWixBuildWixpack task

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@NikolaMilosavljevic NikolaMilosavljevic added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Oct 8, 2025
@dotnet-policy-service dotnet-policy-service bot requested review from a team October 9, 2025 16:16
@NikolaMilosavljevic NikolaMilosavljevic removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Oct 9, 2025
@NikolaMilosavljevic NikolaMilosavljevic merged commit 2a4d010 into dotnet:main Oct 9, 2025
11 checks passed
@dotnet-policy-service dotnet-policy-service bot requested a review from a team October 9, 2025 18:29
@NikolaMilosavljevic
Copy link
Member Author

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants