I'm trying to add a solution to sourcesafe in Microsoft SQL Server Management Studio (or Visual Studio, it behaves the same), but it seems every time I do this I always manage to create a silly structure like this:
[AllMyProjects]
[ExistingProject]
[MyNewSolution]
[MyNewSolution]
[MyProject]
*Project Files*
So I get this duplication of the solution name repeated in sourcesafe! Pretty annoying! It turns out that the way to avoid this is make sure you understand the completely user-unfriendly UI that asks you where to put it. You need to do this:
- Choose "Add solution to source control" as normal
- Click and select the parent sourcesafe project (e.g. AllMyProjects)
- In the project textbox enter the name of the project that will contain the solution, then click OK (so in my example I would type ExistingProject)
Its that last step that makes the difference. You see, if you enter the name of a project that doesn't exist, it will be created and entered in there. If on the other hand you enter the name of a project that exists, then the solution will be created in
that project, and thus will avoid creating 2 solution folders!
Grr!