Hi,
I have an existing solution (in VS2005) containing multiple projects. The solution resides in, let's say, c:\F1\F2\F3 folder.
I'm trying to add the solution to VSS (from VS) and when I'm asked to choose a location I'm selecting specific folder in the VSS tree.
Let's say I have the VSS structure like this:
Root::Projects::P1, and I'm hitting P1 folder.
I'm expecting that the solution file will be added under P1, and all other files/folders will be placed/created correspondingly, like this:
Root::Projects::P1::MySolution.sln
Root::Projects::P1::FolderA <- this folder exists in the solution and so on.
What I have is a different structure at all:
Root::Projects::P1::F1::F2::F3::MySolution.sln
Root::Projects::P1::F1::F2::F3::FolderA
Any clues what causes this behavior
Thanks

VSS folders structure
Juan de la Vashon -beta 126484
I think your solution or one of the projects contain a file that is in C:\ folder, or in another folder like C:\F4\, or similar. If that's the case, this behavior is by design.
When the solution is added to source control, the unified root of the solution is found to be C:\ (the root of the "cone" containing all the files from projects in solution, C:\F1\F2\F3 and C:\F4), and this folder is bound to the folder you select in VSS $/Projects/P1. Thus, the solution relative to $/Projects/P1 will be in $/Projects/P1/F1\F2\F3
Alin
cleomc
That's correct, this happens when adding the solution to source control. The cone is calculated from the items in projects that are not under scc yet.
> Is it correct for adding single project from a solution to the VSS Will VSS still look for the "cone"
Yes. When a project is added to scc alone (say by using AddSelectedProjectsToSourceControl menu command) VS will calculate the "cone" for that project files only, and will bound that folder to the location you point in the VSS store.
> So what is a preferable way to add entire solution to the SourceSafe
I recommend adding all the projects at once, by adding the whole solution to source control, and letting VS calculate only one cone for the solution. The rest of the projects will share the database connection with the solution.
If you want separate connections for projects and control of where the projects end up in the database you can either select the project nodes and use AddSelectedProjectsToSourceControl, or use File/SourceControl/ChangeSourceControl dialog and bind the projects one by one.
Adding projects separately to source control may cause more trouble later if you use share&branch, and may cause problems binding new projects to source control if they contain files from folders that are already controlled by other projects.
Alin
jjjjjjj
So what is a preferable way to add entire solution to the SourceSafe
I'd like to get all the files placed in corresponding locations basing on the root folder I choose.
If I understand correctly, VSS finds the "cone" folder, which is a common root for every element in the solution. Right
Is it correct for adding single project from a solution to the VSS Will VSS still look for the "cone"
Thanks