0

I have some header and cpp files that are shared between 2 projects, so I have put them in a folder named Common:

C:\Workspace\Common\utils.h
C:\Workspace\Common\utils.cpp
C:\Worspace\Project1\Project1.sln
C:\Worspace\Project2\Project2.sln

The 2 files utils.h and utils.cpp are added to both projects, and they're added to SourceSafe as well. However, "File->Source Control->Check Out" from the menu is disabled for those 2 files, even though they're added to the project.

Is this because they're outside the solution's folder, and how do I fix it? Right now I have to go and manually check out those files whenever I want to edit them.

sashoalm
  • 75,001
  • 122
  • 434
  • 781

1 Answers1

0

As you mentioned, the File -> Checkout is disabled because those files are not part of the solution. The only way to check them out from Source Control Explorer is to add them to the Solution. One way to handle this is to add a new 'Solution Folder' and add your Common Folder inside that folder. Then you should be able to do a Get Latest/Checkout from Solution Explorer.

Punit Vora
  • 5,052
  • 4
  • 35
  • 44
  • I created the solution folder, and I added the files inside the Common Folder (using "Add Existing Item"), but they still couldn't be check out from inside VS2010. – sashoalm Jul 24 '12 at 16:35