简体   繁体   中英

Copy dlls that are not referenced in the project into published folder in Visual Studio 2012

I m generating resource assemblies from text files by executing a bat file in the pre-build event and copying them into bin folder. These resource assemblies are therefore not referenced in the project.

At present I need to manually copy these dlls into published folder. Is there a clean way that ensures that everytime I publish, the required dlls are copied into published folder.

Note: I do not want to hard code physical path for deployment folder in the bat file/ or prebuild events.

Please select the DLL and open Property and Marked "Copy Local" as True. Please refer below image. it may help you.

在此处输入图片说明

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