I have a project where it is broken up into 2 solutions the first being compiled into a lib and the second including that lib and compiling an exe.
I want to be able to see all the files in both projects when I run "Open File in Workspace". Ie, is there a way to specify additional files that are listed there that are not in the current solution.
They are not part of the same 'workspace' they are 2 completely separate 'solutions', ie I do not see all the files in the 'solution explorer' of a single instance of the IDE. I see half the files in 1 project and half in the other, however want to be able to 'Open File in Workspace' of any of the files in either project.
The reason for this is that the files in 1 of the projects don't change very often so we have it compiled into a lib as a separate project. However a lot of the includes come from that project and I want to be able to open the files quickly as a reference.
Personally I would add the second project into the first project, and then exclude it from the build via the IDE's build menu -> Configuration Manager
This way it is available for reference, and to easily pull in and view the files, but it should not cause any issues, since the compiler has been told to ignore it. Just remember to exclude it from the build in all configurations.
A "cleaner" solution might be to just add the shared include files to the other solution. If the include files are all within a certain directory this should work well enough. Just add them to the solution (not the project) using "add->add existing item".
That should work. So long as they are header files I don't expect the IDE to try and compile them, but you may have some interesting effects if you have precompiled header files turned on. I am not sure if this tells the compiler to compile all headers or only some of them.
I was going to try this but left it for a while because it wasn't going to be so simple. The problem is the second solution contains 17 projects and we also use a custom build tools. These together make it very difficult to have the projects loaded in the solution without building them.