AspNetCore.Reporting 在 linux 机器上不起作用?

问题描述

我正在使用 AspNetCore.Reporting 在 ASP.Net Core 中处理报告以创建报告。当我在 Windows 机器上执行报告时,它工作正常。但是,如果我在 linux 机器上执行,则会出现此错误

An error occurred during local report processing.;The deFinition of the report '/var/task/Reports/Report.rdlc' is invalid. An unexpected error occurred in Report Processing. Unable to load shared library 'kernel32.dll' or one of its dependencies.

注意:我在 AWS 中使用无服务器部署应用程序,并将 aspnetcore 作为运行时。

谁能帮我解决问题?

解决方法

它在 linux 上不起作用,并且该软件包自 2018 年以来未收到更新。

还有其他替代方案,例如从 MVC 视图创建 pdf 文件的 syncfusion pdf(付费)或 Rotativa,rotativa 使用 wkhtmltopdf(开源和跨平台)。

,

最后我使用 Itext/Itextsharp 作为创建 PDF 的替代方法。创建PDF的功能是开源的