Adding a reference to a valid .wixlib file fails with the following error "A reference to XXX could not be added. Please make sure that the file is accessible, and that it is a valid WiX reference."
Issue is related to .wixlib that are built with the following characteristics:
1) Single source file is bound to multiple components (smart cabbing)
2) -bf flag to bind files is used when library is built
If reference is added to .wixlib built without -bf flag, no error occurs. If library is subsequently rebuilt with -bf flag, product continues to build.
Steps to reproduce
1) Extract sample solution
2) Build TestLib (with bind files)
3) Attempt to add Reference (browse) to TestLib in TestProject
4) *** Fails with error ***
5) Rebuild TestLib without binding files
6) Add reference (browse) to TestLib in TestProject
7) Build TestProject
8) Test install (success)
9) Uninstall TestProject
10) Rebuild TestLib (with bind files)
11) Rebuild TestProject
12) Test install (success)
13) Uninstall TestProject
Logged In: YES
user_id=1925940
Originator: YES
Attached sample solution.
Logged In: YES
user_id=26581
Originator: NO
Dupe of 2010047.