Appharbor 上的 Crystal Reports 程序集部署
将我的应用程序的新版本部署到使用 Crystal Reports 程序集的 Appharbor 时:CrystalDecisions.CrystalReports.Engine 我在 appharbor 部署日志中收到以下错误消息:
ResolveAssemblyReferences:
Primary reference "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference.
Could not locate the assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
我已将“复制本地”设置为在 VS & 中的程序集引用中为真该 DLL 存在于项目 \BIN 目录中。
我是否需要创建 DLL 的本地(非 GAC)副本,然后在项目中引用它?如果是这样,如何在不引用 GAC 版本的情况下执行此操作?
或者我在部署时做错了什么?
提前致谢,
克里斯
When deploying a new version of my application to Appharbor that uses the Crystal Reports assembly: CrystalDecisions.CrystalReports.Engine I receive the following error message in the appharbor deployment log:
ResolveAssemblyReferences:
Primary reference "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference.
Could not locate the assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I've set "Copy Local" to True in the assembly reference in VS & the DLL exists in the project \BIN directory.
Do I need create a local (non GAC) copy of the DLL and then reference it in the project? If so how does one do this without the GAC version still being referenced?
Or am I doing something wrong with the deploy?
Thanks in advance,
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该将 dll 添加到与代码一起推送的本地
/lib
文件夹中。确保引用正确的 dll 的最简单方法是从 GAC 中删除原始 dll,然后确保您的代码可以正常工作。You should add the dll to local
/lib
folder that you push along with your code. The simplest way to ensure that you're referencing the correct dll is to remove the original from the GAC and then make sure that your code works.