appharbor: thirdy party .dll and GAC referenced .dll

前端 未结 1 1598
孤街浪徒
孤街浪徒 2021-01-15 18:43

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

1条回答
  •  鱼传尺愫
    2021-01-15 19:14

    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

    0 讨论(0)
提交回复
热议问题