Adding solutions to VSS = Frustrating

S

SiJP

My environment is as follows:

Visual Studio 2005 (vb.net 2.0) & Visual Source Safe 6

I have one Solution named "Online Transactions"
I have two Projects named "OnlineTransactions" and
"OnlineTransactionsSetup" respectively.

The project properties for the "OnlineTransactions" has a root
namespace of "CompanyName.ProductName.Modules.OnlineTransactions"

The folder structure on my computer is:

C:\Users\Simon\Documents\Visual Studio 2005\Projects\CompanyName
\ProductName\Modules\Online Transactions

*** I am now trying to check this into source safe***

I currently have a project tree as follows:

$/ProductName/Modules/

When I try and "Add solution to Source Control", I expand the tree to
the 'Modules' folder, delete the "Online Transactions.root" entry in
the Name field, and click on OK. This is what is created in VSS:

$/ProductName/Modules/Online Transactions/CompanyName/ProductName/
Modules/OnlineTransactions
$/ProductName/Modules/Online Transactions/CompanyName/ProductName/
Modules/OnlineTransactionsSetup

This is not right!! What I really want is:

$/ProductName/Modules/Online Transactions/OnlineTransactions
$/ProductName/Modules/Online Transactions/OnlineTransactionsSetup

Why is VSS / SCCI / VS 2005 forcing the namespace to be part of the
sourcesafe structure?

Thanks
 
M

Mike {0A6FF490-CF84-4d78-BD85-FF011A0C310C}

It's not. It's getting that from your folder path on your development
machine. I had a lot of trouble with this type of problem and finally
figured it out:

You should have a folder structure like this:
<multiple levels deep>\ProductName
<multiple levels deep>\ProductName\Project1
<multiple levels deep>\ProductName\Project2

Your solution file (*.sln) should be directly in

<multiple levels deep>\ProductName

and the code and project files for each project should be in their own
sub folder under
<multiple levels deep>\ProductName

Otherwise, VSS will recreated as much of your folder structure
(backwards, up the branch) as it needs to, to reach all of your
projects.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top