Share via


Can't see my header file in the Solution Explorer?

Question

Sunday, March 15, 2015 11:05 PM

Hi,

I am new to VS and I am working on a school team project where we use a git repository and when I created a header file I commit it, see it in the folder where I have it stored on my system and on github, but I don't see it in my Solution Explorer in VS. I have used the properties->VC++->include directories and set the path but I still don't see it?

Any ideas is much appreciated!

Thanks

All replies (3)

Sunday, March 15, 2015 11:19 PM âś…Answered | 2 votes

Have you included the header file in your VS project?

To do so, right-click on the Header Files folder in Solution Explorer, select Add->Existing Item...

In the dialog, navigate to your header file, then add it to your project.


Sunday, March 15, 2015 11:56 PM

Hi pvdg42,

That's a great question. I have opened an .sln file because when I try to open a source control project I don't see the .vcxproj file and when I go into the git folder to open the .vcxproject a blank VS window opens. There is another file .vcxproj and when I try to open that one it says modifying this may damage your system.


Monday, March 16, 2015 2:11 AM

It worked! Many thanks!!