Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to exclude folders from project in VS 2005?

Reply
Thread Tools

How to exclude folders from project in VS 2005?

 
 
John Dalberg
Guest
Posts: n/a
 
      02-24-2006
In VS 2003, I was able to exclude full folders from a project but I can't
do the same in VS 2005. I can exclude files but not folders. I prefer to
exclude at the folder level because the folder icon has visual indicator.

John Dalberg
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      02-26-2006
Hi,

you can start using Web Deployment Project addition in VS2005, of course
assuming that you want to configure excluding with deployment in mind.
http://msdn.microsoft.com/asp.net/re...p/default.aspx

When using it, you can configure which folders etc are included in the
deployment (or exluded from it), for ewxample when modifying the wdp project
file by adding

<ItemGroup>
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\test\*.*"/>
</ItemGroup>

with this you essentially exclude folder "test" and it's content from the
output.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke



"John Dalberg" <(E-Mail Removed)> wrote in message
news:20060224171845.469$(E-Mail Removed)...
> In VS 2003, I was able to exclude full folders from a project but I can't
> do the same in VS 2005. I can exclude files but not folders. I prefer to
> exclude at the folder level because the folder icon has visual indicator.
>
> John Dalberg



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude Folders From Being Copy(Ant) blazingwolf7 Java 0 12-22-2008 09:23 AM
ASP.NET 2.0 - How exclude folders/files when publishing? VB Programmer ASP .Net 0 01-05-2006 10:56 PM
Exclude from Project not available for VS2005 web projects Brad ASP .Net 4 05-06-2005 05:12 PM
How to exclude an ASP.NET project from VSS Amitabh Jha ASP .Net 2 09-25-2004 05:22 AM
Exclude Files from Copy Project? Chuck Ritzke ASP .Net 1 04-22-2004 05:50 PM



Advertisments