Skip to content
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

Mismatch between File/@Id behavior and documentation #7598

Closed
appel1 opened this issue Jul 7, 2023 · 0 comments · Fixed by wixtoolset/web#222
Closed

Mismatch between File/@Id behavior and documentation #7598

appel1 opened this issue Jul 7, 2023 · 0 comments · Fixed by wixtoolset/web#222
Assignees
Milestone

Comments

@appel1
Copy link

appel1 commented Jul 7, 2023

  • Which version of WiX are you building with?

WixToolset.Sdk/4.0.1

  • Which version of .NET are you building with?

dotnet 7

  • Describe the problem and the steps to reproduce it.

The documentation at https://wixtoolset.org/docs/schema/wxs/file/ states the following:

Id (String) : The unique identifier for this File element. If you omit Id, it defaults to the file name portion of the Source attribute, if specified. May be referenced as a Property by specifying [#value].

But given input like this:

<Fragment>
  <Component Id="OtherProject">
    <File Source="$(var.OtherProject.TargetPath)"/>
  </Component>
</Fragment>

I get an id like filO1gNj6vgqzhB7GVkA2C1ujporp0 in the resulting .msi.

Am I misreading the documentation or is the docs or implementation incorrect?

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

Successfully merging a pull request may close this issue.

2 participants