How to exclude folders from project in VS 2005?

Discussion in 'ASP .Net' started by John Dalberg, Feb 24, 2006.

  1. John Dalberg

    John Dalberg Guest

    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
    John Dalberg, Feb 24, 2006
    #1
    1. Advertising

  2. John Dalberg

    Teemu Keiski Guest

    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.

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



    "John Dalberg" <> wrote in message
    news:20060224171845.469$...
    > 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
    Teemu Keiski, Feb 26, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer
    Replies:
    0
    Views:
    931
    VB Programmer
    Jan 5, 2006
  2. Hongbo
    Replies:
    2
    Views:
    2,741
    Hongbo
    Jul 24, 2006
  3. Replies:
    2
    Views:
    507
  4. ITistic
    Replies:
    2
    Views:
    414
    ITistic
    Aug 21, 2007
  5. blazingwolf7

    Exclude Folders From Being Copy(Ant)

    blazingwolf7, Dec 22, 2008, in forum: Java
    Replies:
    0
    Views:
    1,943
    blazingwolf7
    Dec 22, 2008
Loading...

Share This Page