locked
Where is the forum for general visual studio questions? RRS feed

  • Question

  • I need some help about a specific question about how visual studio behaves when adding references, and building my project.

    I guess I will ask here.

    When I add references, is there a way to make visual stdio NOT copy the DLL to the "debug/" folder? I find it very annoying that my debug folder gets cluttered with DLLs when I have already made a sub directory for such files!


    (=Chris=)
    Sunday, September 26, 2010 4:55 PM

Answers

  • Hi Chris,

     

    Here's what I think you need to do:

    1. Add the reference.

    2. In Solution Explorer, open the references node for the project whose references you're interested in.

    3. Right-click a reference whose DLL you don't want copied to the debug folder.

    4. On the context menu, choose Properties.

    5. In the Properties window, set the Copy Local property to false if no copy wanted, true if copy is wanted.

    That should give you the control you want.

     

    Cheers,

     

    ChuckforDummies

     


    Co-Author of C# 2005-2010 for Dummies
    Monday, September 27, 2010 10:45 PM

All replies

  • well, I am still unsure what to do about this...
    (=Chris=)
    • Proposed as answer by chuckfordummies Monday, September 27, 2010 10:41 PM
    Monday, September 27, 2010 2:59 AM
  • Hi Chris,

     

    Here's what I think you need to do:

    1. Add the reference.

    2. In Solution Explorer, open the references node for the project whose references you're interested in.

    3. Right-click a reference whose DLL you don't want copied to the debug folder.

    4. On the context menu, choose Properties.

    5. In the Properties window, set the Copy Local property to false if no copy wanted, true if copy is wanted.

    That should give you the control you want.

     

    Cheers,

     

    ChuckforDummies

     


    Co-Author of C# 2005-2010 for Dummies
    Monday, September 27, 2010 10:45 PM
  • Thank you! Your method worked.. now all my DLLs stay put when I build my solution.
    (=Chris=)
    Tuesday, September 28, 2010 1:14 AM