Results 1 to 14 of 14

Thread: [RESOLVED] Visual SourceSafe - How to add a project?

  1. #1

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Resolved [RESOLVED] Visual SourceSafe - How to add a project?

    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.

  2. #2
    Hyperactive Member Max Peck's Avatar
    Join Date
    Oct 2007
    Posts
    384

    Re: Visual SourceSafe - How to add a project?

    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
    The name's "Peck" .... "Max Peck"

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Visual SourceSafe - How to add a project?

    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.

  4. #4

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Visual SourceSafe - How to add a project?

    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...

  5. #5

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Visual SourceSafe - How to add a project?

    Quote Originally Posted by RhinoBull
    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.

  6. #6

  7. #7

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Visual SourceSafe - How to add a project?

    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?

  8. #8

  9. #9

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Visual SourceSafe - How to add a project?

    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?

  10. #10
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Visual SourceSafe - How to add a project?

    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).

  11. #11

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: Visual SourceSafe - How to add a project?

    Yes, that was it.

    Now all I have to do is start backing up the server!

    Thanks a lot!

    Marlene

  12. #12

  13. #13

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,562

    Re: [RESOLVED] Visual SourceSafe - How to add a project?

    Quote Originally Posted by RhinoBull
    If you're set then please change the status of this thread.
    I did...I always do...

  14. #14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width