Hi All,
Visual Studio .NET 2003 and Visual Web Developer both have a 'Exclude From Project' menu command when right-clicking a file in the Solution Explorer. ![]()
I can't find this command in Visual Basic Express.
How can I remove a file from my project, while in the IDE, without deleting it
Thanks,
Gordon Bell

'Exclude From Project' in Solution Explorer
RDV0326
Good Gordon....
I didn't know Exclude from project was absent in VBE !!!!
Should you ever choose to do a deployment project, then that project will have a "File System Editor" (be careful this name is ambiguous because the OS also has an FSE) each project file added via the FSE will have a wider range of specifiability as to what you want to do with it.
Jack Loomis - MSFT
Stoked
There were a lot of discussions as to exactly which debug windows to include (autos, locals, watch1-4, immediate, callstack, memory, registers...). I believe that the callstack window was removed in one of the Beta versions of VB Express, but that is included in the released version of the product...
While in debug mode, take a look in the Debug->Other Windows menu...
Best regards,
Johan Stenberg
rmasonh2006
Thank you Johan.... that's what I thought.
Phewwwwwwwwwwwwwwwwwwwhey answer plz i got a problem..
Johan,
I have just one question. Why did you remove the Call Stack Was that seen as an advanced feature.
Adrian Militaru
So, there is no way to remove a file from a solution, without Deleting it
SachinN
James Lau
Thanks Renee,
I've since upgraded to Visual Studio 2005, so this is no longer an issue.
Exclude from Project should still be an available command in VBE.
GEEEO
When we decided what features to include in the express SKUs (including Visual Basic 2005 Express) there were quite a few factors that played a part. These factors included keeping the size of the application below a certain threshold as well as trying to remove commands that weren't essential for your programming experience.
In this particular case, we made the decision that include/exclude from the project weren't really core scenarios for most developers. Keep in mind that visual studio has literally thousands of commands, and one of the most difficult tasks for someone who has just started using Visual Studio is to just navigate to what they want to accomplish in the product.
We certainly realize that every command that we removed from the product removed some functionality - after all, that's why we implemented the command in the first place - and that there will always be someone who will miss the command.
In this particular case, I still believe that we made the right decision when we removed the command from the product. If you want to exclude a particular file from the project, you can always set the Build Action to non for that particular item and rebuild...
Best regards,
Johan Stenberg
Sam Matthews
As you noticed, the Exclude from project is not supported in VB2005 Express.
Best regards,
Johan Stenberg
NesherHH
Ah, there may be some confusion here... You can choose what files to deploy in the VB Express 2005 version, but you can't right-click on a source file (or other project item) in the solution explorer and exclude that from the current project...
Best regards,
Johan Stenberg
Alberto Ferreira
Gordon,
Depending on how you are deploying there are a couple of ways to that.
If it's one-Click - Project | Properties | Publish | Application Files || Publish Status
And come to think of it since we are discussing VBE here the other ways are not relevant.
Good Luck
Renee - Formerly of the VMS Clusters & I/O Group