1.我们使用Appharbor为我的客户端应用程序的第三方.dll文件(短信和电子邮件)和其中一些我们引用格式GAC的数量。
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.
其中一些我们放入/ bin文件夹并引用该文件夹(我们为.dll文件设置Local Copy = True)
some of them we put into /bin folder and referencing form that folder (we set Local Copy = True for .dll file)
我想要最好的办法来处理GAC和其他第三方.dll维护在appharbor。 如果我需要把.dll放在/ bin或任何其他在项目中的文件夹。
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.
Give me the way to handle Physical file in apphabor / or using CDN.
让我在appharbor中使用专用的sql server
Give me the way to use dedicated sql server in appharbor
推荐答案
而不是
Instead bin deployment, i go through another way.
我在解决方案的根目录下创建了/ lib文件夹,并保存了所有第三方-party .dll和GAC .dll 然后我引用dlls到我的项目,最后它工作正常。 我在我的项目中添加引用有一个错误
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
无法添加对.... dll的引用。请确保该文件是可访问的,并且它是一个有效的程序集或COM组件。
"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 assembly.
对dll的引用可以不添加
然后我可以将我的dll添加到项目中。添加dll后,它的本地复制属性被禁用,所以为什么我不喜欢使用bin-deploy。
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.
道德:所有与第三方.dll和GAC dll相关的依赖项放入您的项目
Moral: All dependency related to Third-party .dll and GAC dll put into your project and refer it form project.
参考: support.appharbor/discussions/problems/72603-third-party-dll-and- gac-reference-dll-not-woking-in-appharbor
更多推荐
appharbor:第三方.dll和GAC引用的.dll
发布评论