Exclude file from Source Control

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

Moderator: SourceGear

Post Reply
skinzz
Posts: 6
Joined: Tue Aug 14, 2007 1:33 pm

Exclude file from Source Control

Post by skinzz » Wed Aug 15, 2007 2:08 pm

Hello,
I am using Visual Studio 2005 and Vault version 3.5.0.
I need each developer to have his own web.config file. How to I exclude this file from source control? I have done some searching and know I did it before with VS 2003 by selecting the file, Going File>Source Control>Exclude (filename) from source control. But can not figure it out in VS 2005.
Thanks a lot!

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Aug 15, 2007 2:57 pm

You could go to the Vault Project (using the GUI client) and delete the web.config file from the repository. However, make sure each developer still maintains his/her own local copy!

skinzz
Posts: 6
Joined: Tue Aug 14, 2007 1:33 pm

Post by skinzz » Wed Aug 15, 2007 3:41 pm

That actually removed it from the client computer when I got latest version :(

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Aug 15, 2007 3:45 pm

Hmm...

If you only deleted it from the repository, using the GUI client, a Get Latest cannot remove it. Are you sure you used the GUI client and not Visual Studio?

In any event, we can get the deleted file back, but I need to know the steps you used to remove the file from the repository in order to tell you how to retrieve it.

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Aug 15, 2007 4:06 pm

Actually, I stand corrected. The behavior you described is accurate.

What you need to do :
  • Go to your Vault Project (where you deleted the file from) and right-click.
  • Select Properties... (at the very bottom of the right-click context menu)
  • Select the Deleted Items tab
  • Select the file you deleted and press the Undelete button
  • Do a "Get Latest" to put the file back on disk
  • On your local disk, make a copy of the file
  • Go back to Vault Project and delete the file again
  • Do another "Get Latest." This will remove the file from disk again
  • Take your copy and manually put it back where it goes on disk
From this point on, the file will no longer be controlled by Vault synchronization.

skinzz
Posts: 6
Joined: Tue Aug 14, 2007 1:33 pm

Post by skinzz » Wed Aug 15, 2007 8:03 pm

Okay, I will try to do that when I get back to the office.
I did install the SP1 Visual Studio service pack because I read that it would include an update to the Source Control menu that would add 'remove from source control' functionality. 3 hours later, after the download and install (which took a hotfix/reboot), that was not the case.
I will post a new topic to ask about this new problem. Thanks for your help.

Post Reply