appharbor: thirdy party .dll and GAC referenced .dll

空扰寡人 提交于 2019-12-01 12:41:49
Prasad Phule

Instead bin deployment, i go through another way.

I created /lib folder at the root of solution and saved all Third-party .dll and GAC .dll then I referenced that dlls to my projects, finally it works fine. I got one error about adding reference in my project as

"A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component."

using below like i converted into appropriate .net assembly.

A reference to the dll could not be added

Then I able to add my dll into project. After adding dll it Local Copy property is disabled so that why i not prefered to used bin-deploy.

  1. If all dll you added using nuget then its fine, you will not get any issue.
  2. If some dll are not available on nuget the Put that dlls in /lib folder created at root level of solution. or use bin deploy.

Moral: All dependency related to Third-party .dll and GAC dll put into your project and refer it form project.

Refernces: http://support.appharbor.com/discussions/problems/72603-third-party-dll-and-gac-referenced-dll-not-woking-in-appharbor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!