Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to tell which project a .cpp file is in

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?

like image 225
user853069 Avatar asked Dec 28 '22 12:12

user853069


1 Answers

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.

like image 117
Doug Avatar answered Jan 21 '23 01:01

Doug