Moving Items Around in a Project

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

Moderator: SourceGear

Post Reply
Scott Mitchell
Posts: 5
Joined: Wed Apr 27, 2005 11:52 am

Moving Items Around in a Project

Post by Scott Mitchell » Wed Jul 20, 2005 3:08 pm

I have a VS.NET 2003 Database Project that's in source control via Vault. I'd like to be able to move around some of the files to different folders, but doings so generates that warning that any local changes will be lost.

So what's the best way to accomplish this so that my changes appear both on the source control side and in VS.NET? Do I move them via the Vault Client tool? I'm remiss to do that b/c, if I'm not mistaken, the actual file locations is stored in the VS.NET Project file, so moving them around in vault won't necessarily update the location in VS.NET.

What's the best way to accomplish this?

TIA

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Jul 20, 2005 4:12 pm

That is correct that moving files around in VS won't move them in Vault (the APIs to do this are simply not there).

I would suggest unbinding the project from source control before moving things around, then moving the files in Vault at the same time you move them locally (so they match up), then attempt to bind the project to the locations in source control. You may need to checkin the unbound project/solution, then the rebound project/solution for it to work right.

Post Reply