How to exclude folders from project in VS 2005?

  • Thread starter Thread starter John Dalberg
  • Start date Start date
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
 
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

Back
Top