How to permantely EXCLUDE items from source control

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

Moderator: SourceGear

Post Reply
ThomasJaeger
Posts: 5
Joined: Sat Apr 01, 2006 2:31 pm

How to permantely EXCLUDE items from source control

Post by ThomasJaeger » Sat Apr 01, 2006 2:35 pm

Hi,

I have several projects and artifacts in my solution that I want to be excluded permantly from source sontrol. How do you do this?

At the moment, everytime I to a check-in from the solution root in VS 2005, Visual Studio wants to include all items that I had previously specified under Vault to be excluded.

It's very annoying. Thanks a lot for your help.

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

Post by dan » Mon Apr 03, 2006 8:22 am

For a regular project, it is the same as VS 2003 - "Source Control->Exclude [filename] from project."

However, MS removed this functionality for web projects/web sites in VS 2005. They may add it back later, as people are requesting it be added back. I would suggest going to their VS 2005 support site and requesting it, as they may be more likely to do it if more people are requesting it.

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Mon Apr 03, 2006 12:02 pm

You can also get this functionality back by using Web Application Projects, which is an add-on to VS2005 created by the VS2005 team. It is rumored to be included officially with VS2005 SP1 (which is coming out some time later this year).

Anyway, the root of the problem is that the VS2005 team decided to stop treating Web projects as if they were applications and start treating them as if they were plain web sites (ie, if the file is in a web site directory, then it's part of the web site, and there is no way to exclude it other than to delete it).

Take a look at Web Application Projects at http://go.microsoft.com/fwlink/?LinkId=57541
gabriel magana-gonzalez

ThomasJaeger
Posts: 5
Joined: Sat Apr 01, 2006 2:31 pm

Post by ThomasJaeger » Mon Apr 03, 2006 2:40 pm

Thanks a lot for your help.

Unfortunately, the project that I need to exclude is a SmartClient (WinForm) project. :-(

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Mon Apr 03, 2006 4:01 pm

Hmm I misread your question, I thought you wanted to only exclude a file in a web project from source control... Can't you remove the solution file (not the whole solution!) from source control? In this case VS might not insist on putting everything under it in source control...
gabriel magana-gonzalez

ThomasJaeger
Posts: 5
Joined: Sat Apr 01, 2006 2:31 pm

Post by ThomasJaeger » Mon Apr 03, 2006 4:28 pm

Yes, I could simply remove the SmartClient project from the entire solution.

But, my solution consists of a core framework that I'm developing plus several SmartClient projects. Since I'm working on the framework and the SmartClients, it is much easier to compile and test all projects under one solution.

The only other way would be to only keep the solution for the framework (29 projects) and then open up several instances of VS2005 for each SmartClient project.

Post Reply