I took over a C++ code which is in a solution. That one solution contains many projects. I edit a .cpp file, but can't file which project it belongs to, so I don't know which project to build. Building the whole solution takes a long time. How do I find out which project a .cpp file belongs to?
In Visual Studio, click Edit - Find and Replace - Find in Files
Where it says 'Find what"' Type in the name of the file you are interested in.
Where it says 'Look in:' Type in the path where you want to search under or use the [...] browse button
Where it says 'Look at these file types:' Type in *.vcxproj
It should list all the project files that include that file in the 'Find Results' window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With