Click to See Complete Forum and Search --> : [RESOLVED] Visual SourceSafe - How to add a project?
MMock
Jun 2nd, 2008, 11:45 AM
So taking everyone's advice in my "How safe is your source?" thread, I've decided to install SourceSafe. So far it's going okay (better than I expected), but I'm at the point where I want to add my project. On my local PC I have a folder called WebSite1. I want to add the whole folder structure to SourceSafe. I have access to the VSS database I created on the server, in VSS Explorer. Under WebSite1 is App_Code, App_Data, Bin (folders), plus files like web.config and login.aspx, and I want that whole structure checked in to SourceSafe and to be the project. How do you do this? I tried dragging the whole WebSite1 folder and all it did was add individual files. All I can find out how to do is add files. What about projects and folders?
Thanks.
Max Peck
Jun 2nd, 2008, 12:24 PM
If you drag the folder itself into VSS you should be presented with a dialog. On that dialog you should have an option called "recursive". Make sure that's checked and the entire folder will be copied into VSS at the location you drop it. (Generally right under $).
HTH,
-Max :D
RhinoBull
Jun 2nd, 2008, 12:29 PM
Not sure what confuses you so there are several ways to add projects to sourcesafe:
- one way is when you create new project (or when you try to save it for the first time) you will be asked if you want to add it to ss
- another way is to right click on the solution name in solution explorer and click on "Add Solution to SourceSafe..."
- another way is to open SourceSafe software and go to File -> Create project menu item (or click similar button on the toolbar)
All of the above applies to VSS 6.0 of course.
MMock
Jun 2nd, 2008, 12:31 PM
Thank you. I had two empty projects in VSS. When I tried what you said to the first, nothing happened. But then I tried it also to the second, and it worked. Not sure what the difference was, but they were both for the same purpose while I was trying to set this up so I can just use the one that worked. Thanks Max Peck (couldn't say *that* three times fast!)
I'm keeping this thread open until I'm all integrated and hooked up through the IDE, so there may be more to come...
MMock
Jun 2nd, 2008, 12:34 PM
Not sure what confuses you so there are several ways to add projects to sourcesafe:
- one way is when you create new project (or when you try to save it for the first time) you will be asked if you want to add it to ss
- another way is to right click on the solution name in solution explorer and click on "Add Solution to SourceSafe..."
- another way is to open SourceSafe software and go to File -> Create project menu item (or click similar button on the toolbar)
All of the above applies to VSS 6.0 of course.
Thanks Rhino Bull, I think we just cross-posted.
Couldn't use your first two ways as Add Solution to SS (2nd way) isn't there. This may have something to do with the fact that I just today installed SS...? I'm hoping the 1st way will be what happens from today on. So I was working with the third way, and for some reason it just wasn't working in one of the projects, but did in the other (see post above). Thanks.
RhinoBull
Jun 2nd, 2008, 12:35 PM
Sorry - I submitted to early...
Anyway, after Creating New Project you will have to set Working Folder, navigate to it and add the entire content but make sure "Recursive" option is checked.
MMock
Jun 2nd, 2008, 12:40 PM
Another question: I closed and reopened Visual Studio. It knows all my files are checked in and locked and it wouldn't let me edit anything. This is good. However, I don't have the option when I right-click a file to check it out. I can go to Visual SourceSafe Explorer and check out the file, then I can edit it, but how do I get VS and VSS to talk to each other directly?
RhinoBull
Jun 2nd, 2008, 12:46 PM
Did you set "Working Folder" in VSS?
MMock
Jun 2nd, 2008, 12:51 PM
I did...but probably in that other project that I ended up deleting, so then I did it in the one remaining project and it's still not a choice when I right-click on one of the files in VS. I closed the solution and reopened. Is there some other "refresh" I need to do?
RhinoBull
Jun 2nd, 2008, 01:57 PM
Strange but VSS has been known to behave "strangely" with VS.Net.
Try like I mentioned earlier: right click on the solution name in solution explorer and click on "Add Solution to SourceSafe...".
After that you may need to check it out for edit (again, directly from your IDE).
MMock
Jun 2nd, 2008, 02:03 PM
Yes, that was it.
Now all I have to do is start backing up the server!
Thanks a lot!
Marlene
RhinoBull
Jun 2nd, 2008, 02:32 PM
Alright, sounds good. :afrog:
If you're set then please change the status of this thread.
Thanks.
MMock
Jun 2nd, 2008, 03:26 PM
If you're set then please change the status of this thread.
I did...I always do...
RhinoBull
Jun 2nd, 2008, 03:33 PM
Yea... I noticed after posting but kept my post anyway. Should have deleted it. :blush:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.