As mentioned in the element's documentation, the default value for the ID attribute is the file name portion from the Source attribute.
The problem occurs when we add multiple files with the same name (but different locations), thus the ID attributes that should be unique become a duplication.
Is there an easy way to give the attribute a random identifier (something like the asterisk in the GUID of the Product element)?
I want not to set the identifiers manually since the files with the same name increase and spread in many .wxs files all over the project.
How about the option of making a WiX extension for that? Something like a function call to get random values.
Thank you!