-
Notifications
You must be signed in to change notification settings - Fork 228
Use backward-compatible GUID generation in Wix 5 #2794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
AdditionalOptionsparameter toCreateWixBuildWixpacktask to support passing additional compiler flags - Configured build targets to automatically pass the
-bcggflag 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.
src/arcade/src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateWixBuildWixpack.cs
Show resolved
Hide resolved
|
/backport to release/10.0.1xx |
|
Started backporting to release/10.0.1xx: https://github.com/dotnet/dotnet/actions/runs/18535661258 |
This includes the following changes:
CreateWixBuildWixpackto support additional build/compilation options-bcggto wix build and wixpack taskaspnetcoreandsdkinfra to add-bcggto Compiler options, and utilizeAdditionalOptionsin wixpack task to have the same option during wix repack-bcggoption