简体   繁体   English

是否可以将Crystal Reports添加到目标4.6的.NET Core应用中

[英]Is it possible to add Crystal Reports into .NET Core app targetting 4.6

I am currently trying to develop a small web application for a business. 我目前正在尝试为企业开发小型Web应用程序。 I started development using .NET Core 1.1 version. 我开始使用.NET Core 1.1版本进行开发。 And when I tried to study how to add Crystal Reports into the project, it is said that they are not supporting it yet. 当我尝试研究如何将Crystal Reports添加到项目中时,据说他们还不支持它。

Is it possible to add Crystal Reports if I change my target framework to 4.6 in the .NET Core app? 如果在.NET Core应用程序中将目标框架更改为4.6,是否可以添加Crystal Reports? Or do I have to start a new web application targeting .NET Framework project 4.6.2 from scratch again? 还是我必须重新从头开始针对.NET Framework项目4.6.2的新Web应用程序?

This should absolutely work. 这绝对应该工作。 When targeting the full framework like 4.6 with Asp.Net Core you have access to any dlls that are based on 4.6 that you create project references to. 当使用Asp.Net Core面向4.6之类的完整框架时,您可以访问基于4.6的任何 dll,这些dll可以创建项目引用。

If the makers of Crystal Reports said they are not supporting it yet, perhaps they mean they are not supporting it via direct reference from a project json file but even that seems suspect. 如果Crystal Reports的制造商表示他们尚不支持它,则可能表示他们不支持通过项目json文件中的直接引用来支持它,但这似乎令人怀疑。 But now with VS 2017 the project json is no longer used and .Net Core projects use a regular cs proj file fairly similar to what non .Net Core projects have always uses. 但是现在在VS 2017中,不再使用项目json,并且.Net Core项目使用常规的CS proj文件,该文件与非.Net Core项目始终使用的文件非常相似。 So again, use VS2017 you should absolutely be able to reference Crystal Reports Dlls directly and you should be able to reference a full framework class library that references a Crystal Reports DLL. 因此,再次使用VS2017,您应该绝对可以直接引用Crystal Reports DLL,并且应该可以引用完整的框架类库,该库引用了Crystal Reports DLL。

Another possibility is that maybe their designer support tooling needs updated in some way for .Net Core Projects. 另一个可能性是,他们的设计师支持工具可能需要针对.Net Core项目进行某种更新。 But even if that's the case, running an existing report should work. 但是,即使是这样,运行现有报告也应该可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM