1

Is it possible to change the references build folder? I want my dlls when i compile to be in a /bin/Debug/Data and not in /bin/Debug.

Thank you

Update 1: Is it possible when i build the references dlls are posted in another folder?

user3452550
  • 41
  • 1
  • 5

4 Answers4

1

You can use Post-build Event in project properties. Using this event you can copy dll file any other place or directory after build but dll project must be added in this project.

0

Go to Projct properties. Tab "Build". Change Output pathenter image description here

Alex Lebedev
  • 601
  • 5
  • 14
  • 1
    He want to place executable in different folder and DLLs into different, so it is not answer to the question. – NASSER Aug 27 '15 at 11:19
0

If I am not wrong I believe you can using Element . You can do this in app.config file The following example shows how to specify application base subdirectories the runtime should search for assemblies.

Personally I have not tested this. I found this in here: https://msdn.microsoft.com/en-us/library/823z9h8w.aspx

anam
  • 216
  • 1
  • 2
  • 14
0

This article demonstrating Setting a Custom Reference Path

Add the following line before the main Form is initialized

AppDomain.CurrentDomain.AppendPrivatePath(@"bin\Data");
NASSER
  • 5,900
  • 7
  • 38
  • 57
  • Ok, but when i build how the dlls go to that folder? I can create a post build action, but i want to publish my application and the dlls are not in the /bin/Data folder. – user3452550 Aug 27 '15 at 11:56
  • Have you copied your required Dlls into data? – NASSER Aug 27 '15 at 11:58
  • Well let me explain better. 1. I add references by nuget package manager. 2. I use that things to do stuff in my project. 3. Build the project then the dlls are built in the /bin/debug folder. I want them to go to /bin/debug/Data folder. – user3452550 Aug 27 '15 at 13:25