How to exclude a project from a source controlled solution

Hi


Using VSS 2005,


We have a source controlled solution and we need to exclude 2 projects from the source control – but have the in solution -. I haven’t found that option when I right click on the projects. How can I exclude them from source control?

Thank you,

Alan

[973 byte] By [A.M] at [2007-12-17]
# 1
Hi Alan,

Projects cannot be excluded from source control once the solution has been added to source control.
The idea of having the solution controlled is that another user should be able to enlist in the solution by opening the solution from source control and should get all the projects in that solution.

At least the project files you'll have to add them to the VSS database (otherwise you'll always see them in the Pending Checkins window).
The next thing close to what you're trying to achieve is this:
- after you have added the projects to the controlled solution, use the checkin dialog and select only the project files. Continue with the checkin and only the project files will be added to the VSS database
- select all files in the projects in SolutionExplorer then use the File/SourceControl/ExcludeFromSourceControl command to exclude the files from scc.
The files in the projects will not be added to the VSS database, but everytime you add a new file to the project you'll have to remember to exclude it, too.

Alin

AlinConstantin-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...

Visual Studio

Site Classified