How to exclude folders from project in VS 2005?

J

John Dalberg

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
 
T

Teemu Keiski

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/reference/infrastructure/wdp/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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top