首页 文章

在Visual Studio 2010中为不同版本的Crystal Report构建.NET应用程序

提问于
浏览
2

如何在Visual Studio中构建针对不同版本或可能是Crystal版本的较低版本的.NET应用程序 .

客户端计算机包含Crystal Report 9运行时以及安装的设计器 .

现在它运行的是一个.NET应用程序,它使用Visual Studio 2008/2010中的Crystal Report组件来定位Crystal Report 9,而不安装除上述之外的任何其他运行时 . 如果有,怎么样?

1 回答

  • 4

    You can use this XML in your app.config or web.config:

    <runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Enterprise.Framework" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.1100.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Enterprise.InfoStore" publicKeyToken="692fbea5521e1304" culture="neutral"/>
            <bindingRedirect oldVersion="13.0.2000.0" newVersion="12.0.1100.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    

    在属性“oldVersion”中,您必须将要替换版本的版本替换为属性“newVersion”

相关问题