'Exclude Files From Project' - Beta 2

How do I 'Exclude Files From Project' in VS 2005   I have a solution that requires files to exists in the directory structure but not be compiled.

Where has this functionality moved to   Also, what happened to the 'Show All Files' option

Regards,



Answer this question

'Exclude Files From Project' - Beta 2

  • Pihrt

     C4702 wrote:
    Actually the DLL goes into the BIN folder...


    Of course, I got mixed up.Sad

    I won't pretend that I can solve your architecture, but I can say that the best place to ask would be the www.asp.net where the real ASPNET (also for the BETA 2) action is.  We had a thread on "excluding files" there and at the time (about 12 months ago) no one had a problem that couldn't be solved with this model.  Your's might have been the right argument.

    Scott Guthrie is (was ) often in those forums and his team is certainly keeping tabs on it.  I would post it at http://forums.asp.net/138/ShowForum.aspx and you will hopefully get an answer.

    As you said you have aspx and ascx files, I assume these are compiled in another project   What I have tried and does work is to have two separate web projects.  Since each page is compiled to its own dll in it's BIN directory (in ASP 1.1 it was only 1 dll for all pages and user controls) it is also possible to just copy and paste single pages from one compiled (published) web into another.  Of course you need to take the page dll too.  Could that help   I don't really see the advantage over one project though.

    I still want the feature too.  Let me know if you find an answer, I will continue looking too.

    Alle

  • John Bevington

    I'll check on my Beta 2 once it's finished downloading but it's not there on the right click menu

  • js40

    That gave me the 'Exclude from project' option, however it's greyed out and not available no matter how I try to use it...  Any other ideas on how I could exclude from a project certian folders / files

    Awaiting your response,
    Charles

  • Syed Arshad

    Yeah!  Unfortunately for me I guess.. Tongue Tied this breaks a 1.1 app which requires files to be in the solutions directory structure but not compiled as part of the solution (as it has it's own DLL already compiled in the BIN folder)

    I doubt MS will enable this feature, Idea but maybe if enough of us make a noise they will hear the distant faint squeak we make.  One can hope at least. Tongue Tied

  • Ashley Lessard

    Yes, if you know how to get around this, please let me know.  I'd love to get my 1.1 app converted to 2.0...

    Awaiting your response,
    Charles

  • Irshad

    You should be able to edit the underlying .csproj file which is just an MSBuild file.  Have a look at this part of the help:

    http://msdn2.microsoft.com/library/ms164283(en-us,vs.80).aspx

  • lwmorris067

    I am having the same problem with the same tools. please let me know if you find a work around

  • steverino_can

    Well, what are you trying to include in the structure   The DLL can't be the problem as you have already indicated, since by referencing it in the web project the DLL is copied into the BIN App_Code folder.
  • Qadeer Ahmed

    Actually the DLL goes into the BIN folder...

    I have a bunch of ASPX files that should not be included in the solution and 1 ASCX that should be included in the solution all under one folder.

    The actual component can be found here.
    http://www.telerik.com/Default.aspx PageId=1612

  • TheBlackhorse

    Here's what my Solution Explorer looks like when I right-click on a folder...

    http://ShowProUSA.com/solution-explorer.gif

  • Jose Coig

    Hmm...for some reason it seems to be missing, you get around this adding it to the toolbar:

    1. Choose Tools -> Customize
    2. Under Categories, select Project then scoll Commands until you reach Exclude From Project.
    3. Grab and drag Exclude From Project onto the toolbar.

    That could do for now. However, I would report a bug at the Microsoft Feedback Center.



  • EHerb

    If your project is a WEB PROJECT then the "Exclude from project" is not there by design !!

    See MS FeedbackCenter threads.

    MS feels this is more "natural" for web projects.....  I miss it too.

    Alle

  • johnpro

    I do have the feeling MS hears, but the direction of ASPNET has changed a bit to be more "natural" for developers who are moving over from other technologies.  We haven't really lost anything, but it's not the same.

    I do believe you can still do what you want, but differently now.  I'll get back to you.

    Alle

  • mike g777

    Tongue Tied I've reported this as a BUG... and I sure hope this is fixed in the RC as this is crazy...  It seems they have made so many improvements with the IDE, yet have regressed with such an important feature.  This will cripple the final product if the decision to leave out this functionality is upheld...

    For the sake of sanity... MS, please make the process of excluding folders/files easier than manually editing proj files...

    Faithfully yours,
    A C# Web/Win Developer

  • 'Exclude Files From Project' - Beta 2