简体   繁体   中英

Copying dynamically copied DLL's from bin folder during publish

I am using dependency injection in my application, and the dll's used for contract implementations are copied to my applications bin folder via a post build event on the projects that implement my contracts. I have done it this way so I do not have to reference these projects and I am using convention over configuration with class names etc.

However, when I publish the application the dll's are not being copies as part of the publish. Anyone know a way around this??

Instead of using a Post Build event, include the dll as part of the Project. In your Solutions Explorer, right click on the dll, choose properties and set "Build Actions" to "Copy if Newer". The dll will always be included while Publishing.

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