dotnetcore / Magicodes.IE

Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
http://docs.dotnet-china.com/Magicodes.IE
MIT License
2.11k stars 481 forks source link

一个项目用Magicodes.IE跟NPOI #554

Open a645010545 opened 7 months ago

a645010545 commented 7 months ago

Expected behaviour

Tell us what should happen. 升级最新的NPOI后 Magicodes.IE会报错

Actual behaviour

Tell us what happens instead. Provide a log message if relevant. System,MissingMethodException: Method not found:'System. I0. MemoryStream Microsoft.I0.RecyclableMemoryStreamManager.GetStream(System. String)

I'm seeing this behaviour on

Remove this hint: these checkboxes can be checked like this: [x]

package versions

Example: Magicodes.IE.Excel 2.2.2, Magicodes.IE.Pdf 1.0 最新的Magicodes.IE跟NPOI

So how can we reproduce this?

Remove this hint: Pick one of these - use the Preview feature of this editor to get a sense which option we like best exporter.ExportAsByteArray

Awesome :star::star::star::star::star:

Provide a (link to a) minimal demo app showing the faulty behaviour.

Sweet :star::star::star::star:

Provide a concise code sample which can upload attachments.

Good :star::star::star:

Provide your own app and instructions how to reproduce the issue.

Meh :star::star:

Provide a code sample with a bunch of magic parameters which I need to interpolate by guessing to reconstruct the actual runtime code.

Worst :poop:

Say the source code can't be disclosed and refuse to provide any of the above. Expect this issue to be closed by a bunch of angry aliens :alien::alien::alien::alien::alien: that will hunt you down and :fire: your :computer:. You've been warned. :fire_engine:

kissxic commented 6 months ago

我也遇到了,NPOI从2.62到2.7,之前正常使用的都会报错了

dusdong commented 6 months ago

我也遇到了

Xugg-1999 commented 5 months ago

我也是这样的,没办法把npoi又给降级了

390620652 commented 2 months ago

我没用NPOI,但是不知道为什么也有这个问题

ForeverRG commented 1 month ago

我没用NPOI,但是不知道为什么也有这个问题

我也是,很奇怪,应该怎么处理呢?

390620652 commented 1 month ago

关键是这个 Microsoft.IO.RecyclableMemoryStream.dll 的版本。 最高版本的 ie 只支持 2.3.2 RecyclableMemoryStream,超过就不行了。所以要么指望作者发布新版ie,要么我们检查自己项目里的所有引用包,把 RecyclableMemoryStream 相关引用的版本全部降下来。

ForeverRG commented 1 month ago

关键是这个 Microsoft.IO.RecyclableMemoryStream.dll 的版本。 最高版本的 ie 只支持 2.3.2 RecyclableMemoryStream,超过就不行了。所以要么指望作者发布新版ie,要么我们检查自己项目里的所有引用包,把 RecyclableMemoryStream 相关引用的版本全部降下来。

ok,thx