Add to Vault not Working

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
chrisdrobison
Posts: 8
Joined: Sat Dec 01, 2007 1:25 am

Add to Vault not Working

Post by chrisdrobison » Wed Apr 02, 2008 11:15 am

I'm currently using Vault 4.1.0.16216. I have a solution checked in with 3 projects checked in under that solution in Visual Studio 2008 with the enhanced client. I recently tried to add a new project to the solution and check it into vault. However, when I right-clicked on the project and tried to add to vault, the option was not available, it was grayed out. Is there a way to fix this?

I've also noticed that when new files are added to a project that the enhanced client does not automatically detect that they are new and so when that project is checked in that file is not included, you have to explicitly add it to the vault. Is there a way to fix this?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 02, 2008 12:40 pm

Are you using the Enhanced Client or the Classic Client on this one? That's in the source control options for VS.

chrisdrobison
Posts: 8
Joined: Sat Dec 01, 2007 1:25 am

Post by chrisdrobison » Wed Apr 02, 2008 12:42 pm

I'm using the enhanced client

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed Apr 02, 2008 1:04 pm

The enhanced client should do all of these things:
  1. Automatically pend adds for new files in bound/online projects.
  2. Automatically pend adds for new projects in bound/online solutions.
  3. If for some reason you deleted the pending adds from the pending changes pane, you can redo them manually via the Add command on the context menu.
Note that these are never added and checked in automatically. After the adds are pended, you still decide when to check in.

I was able to verify all these behaviors on 4.1.0 in the simple case. So the question is, why doesn't it work for you?
  • Are you online?
  • Is the solution bound?
  • What does the change bindings dialog (File|Vault Source Control|Change Vault Bindings) look like? Are there invalid bindings?
  • What's the relationship on disk between the solution file and your projects (see this for information on why that's possibly relevant).
  • If you remove the offending project from the solution, then re-add it (via add existing project), what happens? Still nothing?
Ian Olsen
SourceGear

chrisdrobison
Posts: 8
Joined: Sat Dec 01, 2007 1:25 am

Post by chrisdrobison » Wed Apr 02, 2008 1:22 pm

Okay, so I thought that I had the solution in source control, but according to the vault bindings it wasn't bound. The solution file was checked in originally. I don't know what happened. I rebound it and now it is picking up new files and projects.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed Apr 02, 2008 1:24 pm

I'm glad it was that easy. :)
Ian Olsen
SourceGear

Post Reply