Skip to content

Directory symbol 'TARGETDIR' conflicts with a virtual symbol in a Merge Module #9012

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

Closed
1 task done
chrpai opened this issue Mar 26, 2025 · 0 comments · Fixed by wixtoolset/wix#637
Closed
1 task done
Assignees
Milestone

Comments

@chrpai
Copy link

chrpai commented Mar 26, 2025

WiX Version

6.0.0-rc.2

.NET or MSBuild or Visual Studio Version

17.13.4

HeatWave Version

1.0.5.9

Windows Version

Win 24H2

Repro Repo

No response

Repro Steps

For a couple of decades now I've authored the directory table of a merge module like such:

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="MergeRedirectFolder">
  </Directory>
</Directory>

These days that gives the error:

It is no longer necessary to define the standard directory 'TARGETDIR'. Use the StandardDirectory element instead.
The Directory symbol 'TARGETDIR' conflicts with a virtual symbol. Use the 'override' access modifier to override the virtual symbol or use a different Id to avoid the conflict. Referenced from wixstd.wixlib

Removing the TARGETDIR directory element fixes the problem and the directory table is authored exactly like I've always authored it.

Is StandardDirectory element really a good suggestion in the context of a merge module which is generally abstract. I get no such error for other well known directory properties such as CommonAppDataFolder. I do get the WIX5437 warning for both.

Is there really any reason why not to allow authoring TARGETDIR as the resulting compile is the same anyways?

Actual Result

The Directory symbol 'TARGETDIR' conflicts with a virtual symbol. Use the 'override' access modifier to override the virtual symbol or use a different Id to avoid the conflict. Referenced from wixstd.wixlib

Expected Result

Compile without error but leave WIX5437 warning if approriate.

Acknowledgements

  • I acknowledge that this is a fully completed bug report. It is not a question or attempt to get help debugging my issue (because those should be sent to Discussions).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants