Appharbor 上的 Crystal Reports 程序集部署

发布于 2025-01-03 10:59:37 字数 969 浏览 4 评论 0原文

将我的应用程序的新版本部署到使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欲拥i 2025-01-10 10:59:37

您应该将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文