appharbor: thirdy party .dll and GAC referenced .dll

女生的网名这么多〃 提交于 2019-12-01 11:16:36

问题


1.We are using Appharbor for my client app having number of third party .dll files(for SMS and Email) and some of them we referencing form GAC.

some of them we put into /bin folder and referencing form that folder (we set Local Copy = True for .dll file)

I want best way to handle GAC and other third party .dll maintain in appharbor. If i need to put that .dll in /bin or any other folder which is in project.

  1. Give me the way to handle Physical file in apphabor / or using CDN.

  2. Give me the way to use dedicated sql server in appharbor


回答1:


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



来源:https://stackoverflow.com/questions/27636406/appharbor-thirdy-party-dll-and-gac-referenced-dll

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