代码合同和SAP CrystalReports 13 [英] Code Contracts and SAP CrystalReports 13

查看:71
本文介绍了代码合同和SAP CrystalReports 13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有Code Contracts 1.4.51019.0和SAP Crystal Repots 13的Visual Studio 2010。

当我启用运行时检查时,出现以下错误:

 读取汇编'CrystalDecisions.CrystalReports.Engine'来自'C:\Program Files(x86)\SAP BusinessObjects \ Crystal Reports for
.NET Framework 4.0 \ Common\SAP的BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll"导致错误

<跨度>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; 装配参考没有解决:BusinessObjects.Licensing.KeycodeDecoder,版本= 13.0.2000.0文化=中性公钥= 692fbea5521e1304

<跨度>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP。 &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
无法解析类型引用:[BusinessObjects.Licensing.KeycodeDecoder] com.crystaldecisions.common.keycode.KeycodeCollection。

ccrewrite:error:由于元数据错误而重写被中止。检查输出窗口

 Reading assembly 'CrystalDecisions.CrystalReports.Engine' from 'C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll' resulted in errors.
            Assembly reference not resolved: BusinessObjects.Licensing.KeycodeDecoder, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304.
            Could not resolve type reference: [BusinessObjects.Licensing.KeycodeDecoder]com.crystaldecisions.common.keycode.KeycodeCollection.
ccrewrite : error : Rewrite aborted due to metadata errors. Check output window

我发现到目前为止,SAP已从此版本中删除了许多DLL,因为它们不再使用它们。但是,他们
仍然引用了这些大会。我在不同的论坛(包括SAP支持论坛)上发现了一些与此问题相关的帖子,他们都说SAP不会向公众发布KeyDecode程序集。

有没有办法让  ; ccrewrite忽略此错误?

问候,


Thomas Hoekstra

推荐答案

实际上,我们对重写器有一个额外的选项,使其忽略元数据错误。

Actually, we do have an extra option to the rewriter to make it ignore metadata errors.

在CodeContract属性中根据广告vanced,你可以输入:-ignoreMetadataErrors

In the CodeContract properties under Advanced, you can enter: -ignoreMetadataErrors

这将导致重写器即使存在此类错误也能继续。请注意,这样做是有风险的,因为在某些情况下可能会导致代码生成错误。谨慎使用。

This will cause the rewriter to continue even in the presence of such errors. Note that doing so is risky, as it might cause bad code generation in some circumstances. Use sparingly.


这篇关于代码合同和SAP CrystalReports 13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆