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.
How to permantely EXCLUDE items from source control
Moderator: SourceGear
-
- Posts: 5
- Joined: Sat Apr 01, 2006 2:31 pm
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.
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.
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
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
-
- Posts: 5
- Joined: Sat Apr 01, 2006 2:31 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
-
- Posts: 5
- Joined: Sat Apr 01, 2006 2:31 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.
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.