简体   繁体   中英

Is possible to change references (dlls) default build folder in visual studio?

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?

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.

Go to Projct properties. Tab "Build". Change Output path 在此处输入图片说明

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

This article demonstrating Setting a Custom Reference Path

Add the following line before the main Form is initialized

AppDomain.CurrentDomain.AppendPrivatePath(@"bin\Data");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM