I have a C++ solution with multiple projects in VS2019. I've just added a new static library project, and this static library needs to use some functionality contained in another existing static library project.
When I right-click References under this new static library, and add a reference to the existing static library, the icon under References shows a warning icon (yellow triangle with exclamation mark).
I've looked at some Microsoft documents on broken references:
https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/ayds71se(v=vs.90)?redirectedfrom=MSDN
None of the answers in the 'broken references' page apply to my situation, because I'm using the Wizard to create the reference and it's broken right away; I certainly didn't move the file on disk or anything like that.
A similiar issue is reported here with no clear resolution:
https://developercommunity.visualstudio.com/content/problem/632599/the-microsoftvisualstudioprojectsystemreferencesun.html
In other projects within my solution, references to the existing static library do work without any warning. The main difference that I can see is that the projects referencing the library are MFC applications, not static libraries themselves, but I don't see why a static library should have any issues with referencing another static library.
When I double-click the reference, I get a pop-up message:
The "Microsoft.VisualStudio.ProjectSystem.References.UnresolvedBuildDependencyProjectReference" reference could not be resolved.
What am I doing wrong here?