开发者

Copying dynamically copied DLL's from bin folder during publish

开发者 https://www.devze.com 2023-03-30 23:09 出处:网络
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 co

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. Anyo开发者_如何学JAVAne 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消