开发者

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. 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜