How can I structure my Solution in source safe
Hi I have created a solution in vs.net as follows
Framework
DataTier (solution Folder)
DT.DataManager (class Library)
BusinessTier (solution Folder)
BT.BusinessManager (class Library)
UITier (solution Folder)
UI.WinForms (control Library)
UI.WinControls (control Library)
NOw I have read that the best way to add a solution to source safe is by adding a solution at
once FROM VS.NET rather than visual source safe.
The problem I am facing is how can I create the above structure safely in source safe from Visual
studio .net.
EG if i get the latest from source safe if not exists it will create the folders in my working folder
as above structured
THanks in advance

Help needed in structing a solution in source safe safely
noobProgrammer
With certain limitations, the article still applies; it was written in VS2002 timeframe...
VS2003 and later create by default a Solution.root folder in the VS database, where all the projects and webs in the solution are stored.
Also, in VS2005 localdisk webs in the solution in general share the same connection with the solution, so VS will try to place them in the VSS database in the same location relative to the solution as they are on the local disk.
When using source control integration in VisualStudio, the project locations in the source control database should be established only by using integration (either automatically during AddToSourceControl, or manually, using ChangeSourceControl dialog). Adding files directly in the VSS database using VSS Explorer or command line is not recommended and is not a supported scenario.
The best way is to create the solution first (so all the projects are created as subfolders of the solution), and let after that VS/VSS to manage the locations in the VSS database.
Alin
feby
Thanks for your reply.
I have created a test solution with the folder structure mentioned in my post.
Added to sourceControl
but in vss it didnt create the safe folder structure!
Is there some documentation how to create safely a solution structure that is the same as your solution in vs.net (including solution Folders)
thanks as usual
HarisRashid
Hi,
Yes, if you intend to use source control integration in VisualStudio you should add the solution to source control from VisualStudio (File/SourceControl/AddSolutionToSourceControl).
To open the solution on a different machine use File/SourceControl/OpenFromSourceControl or File/Open/Project/SourceSafe, depending on which version of VS/VSS are you using.
If the solution was added to source control at the same time VS will create on the second mahcine a similar structure as on the first machine.
Alin
Arvan
Thanks.That worked!!!
I have created the phisical folders and then just added the solution to sourceControl
Because you can structure the solution within VSS and then MS tells you that you should not structure a solution within VSS but use VS.NET to avoid some problems later on ,it creates an uncertainty among some developers on the best way to do things.Because of this articles pop out everywhere on tricks and tips on how to use source safe to avoid problems later on.
I found this one a good one.
http://www.avocadosoftware.com/csblogs/dredge/archive/2005/02/09/VSNET_VSS_AddToVSS.aspx
What I am getting at is the need for some official article on the MSDN on how to use sourcesafe structuring a solution etc...with some examples.I think it would avoid lots of questions on forums.
I found a good article,Does this still apply to vs 2005
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/tdlg_ch3.asp
thanks again for your time and help.
Sorry if not clear.
Knubbi
> but in vss it didnt create the safe folder structure!
Solution Folders are virtual containers for other projects. Your projects on disk are likely not in a physical folder matching how SolutionExplorer shows the projects in solution folders.
You can create the solution, create solution folders, create physical folders on local disk to match the solution folders under the solution's directory, create the projects in the physical folders, drag & drop the existing projects into the solution folders in solution Explorer, then add the solution to source control.
SourceControl integration matches (as much as possible) the physical folder structure on disk.
Alin
Kristin
Thanks again for your time in replying.
I just wish that more articles or a book on source safe would came out with the do's and dont's .
thanks