c# Move dlls to sub-folder on build

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piercy
    New Member
    • Aug 2007
    • 77

    c# Move dlls to sub-folder on build

    Hi, i tried googling this but couldnt find anything so maybe you guys can help me... What im trying to do is when my project is built, move the dlls to a subfolder so there not all cluttering up the folder with the exe in. ie:
    Code:
    /MyProj.exe
    /Dll/Some.DLL
    /Dll/SomeOther.DLL

    I know how to do this for things like images etc... but not for Dlls :S.

    Not all of my referenced dll's are copied locally but for the ones that are is there anyway to move them like this?

    Please and Thanks,
    Piercy
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Create a little .BAT file and have it run on the post-build step?

    Comment

    • piercy
      New Member
      • Aug 2007
      • 77

      #3
      Originally posted by Plater
      Create a little .BAT file and have it run on the post-build step?
      Nice idea ;) that would work. How would this affect the program though? Ie. if i move the dll's without telling it wont it go crazy?

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Hmm. Yes. It probably WOULD go crazy.
        I think you need to find a way to put in a reference path?

        Comment

        Working...