.net core 在.net内核中使用stimulsoft

.net core 在.net内核中使用stimulsoft,.net-core,ubuntu-16.04,stimulsoft,.net Core,Ubuntu 16.04,Stimulsoft,到目前为止,我在.net项目中使用了stimulsoft,但当我尝试将项目迁移到.net core时,一切都没有成功。以下是我使用stimulsoft库的过程: report = new StiReport(); report.Load("test.mrt"); report.Compile(); //--> here I get System.Windows.Forms load exception MemoryStream memoryStream = new MemoryStream

到目前为止,我在.net项目中使用了
stimulsoft
,但当我尝试将项目迁移到.net core时,一切都没有成功。以下是我使用stimulsoft库的过程:

report = new StiReport();
report.Load("test.mrt");
report.Compile(); //--> here I get System.Windows.Forms load exception
MemoryStream memoryStream = new MemoryStream();
report.ExportDocument(StiExportFormat.Html, memoryStream); //--> here I get User32.dll load exception
首先,我在编译阶段遇到了以下错误:

FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
然后我对编译行进行了注释,但在导出阶段出现以下错误:

DllNotFoundException: Unable to load DLL 'User32.dll': The specified module or one of its dependencies could not be found.
我已经从nuget安装了
Stimulsoft.Reports.Web.NetCore
version
2018.2.3
。尽管这个包的目标是.net内核,但它仍然依赖于平台相关的模块。我做错什么了吗?有人能帮忙吗


PS:我正在ubuntu 16.04上运行该应用程序(从2018.2.3版开始),Stimulsoft.Reports.Web.NetCore不支持.NET Core上的StiReport.Compile())

此方法对于报告中的C代码起作用(
元素)是必需的。因此,如果您的报告依赖于内部的C代码,则应切换回.NET Framework和
Stimulsoft.Reports.NET

或者只需使用
Compile()
调用删除该行,否则导出将在Windows上顺利运行(但不需要报告中的C#代码进行任何动态修改)

不幸的是,我没有在Linux下运行Stimulsoft报表的经验,因此无法告诉您对
User32.dll
的依赖性。但是你可以请求支持,他们很有反应