Skip to content

Prevent recursive bind-time variables. - #736

Open
barnson wants to merge 1 commit into
mainfrom
bob/PreventRecursiveBindTimeVariables
Open

barnson wants to merge 1 commit into
mainfrom
bob/PreventRecursiveBindTimeVariables

Conversation

@barnson

@barnson barnson commented Oct 26, 2026

Copy link
Copy Markdown
Member

Package/@Version="!(bind.Property.ProductVersion)" is doomed to fail. Prevent that.

Fixes wixtoolset/issues#9303

`Package/@Version="!(bind.Property.ProductVersion)"` is doomed to fail.
Prevent that.

Fixes wixtoolset/issues#9303
@barnson
barnson requested a review from robmen October 26, 2026 03:39
@barnson barnson self-assigned this Oct 26, 2026
@barnson barnson added the bug Something isn't working label Oct 26, 2026
@barnson
barnson enabled auto-merge (rebase) October 26, 2026 12:43

if (value == resolvedValue)
{
// If the values are the same, we have a recursively-defined variable and should fail to avoid the infinite loop.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This wouldn't catch something like Manufacturer="Something !(bind.Property.Manufacturer) OrHere". That'd be pretty crazy so up to you if we should handle it.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet build / wix build hanging forever

2 participants