Magicodes.IE icon indicating copy to clipboard operation
Magicodes.IE copied to clipboard

Magicodes.IE 和npoi冲突

Open huguodong opened this issue 1 year ago • 4 comments

Expected behaviour

Magicodes.IE 和npoi冲突,报错

System.MissingMethodException: Method not found: 'System.IO.MemoryStream Microsoft.IO.RecyclableMemoryStreamManager.GetStream(System.String)'. at OfficeOpenXml.Utils.RecyclableMemoryStream.GetStream() at OfficeOpenXml.ExcelPackage.ConstructNewFile(String password) at OfficeOpenXml.ExcelPackage..ctor() at Magicodes.ExporterAndImporter.Excel.Utility.ImportHelper`1.GenerateTemplateByte() at Magicodes.ExporterAndImporter.Excel.ExcelImporter.GenerateTemplateBytesT

huguodong avatar Apr 23 '24 00:04 huguodong

我也遇到了这个错误,请问应该怎么解决?

ForeverRG avatar Sep 05 '24 02:09 ForeverRG

我也遇到了这个错误,请问应该怎么解决?

降级npoi到和mag一样的版本

huguodong avatar Sep 05 '24 02:09 huguodong

我也遇到了这个错误,请问应该怎么解决?

降级npoi到和mag一样的版本

我检查了下,没用npoi这个包,但还是报了这个错,不折腾了,换其他库了,谢谢了

ForeverRG avatar Sep 05 '24 03:09 ForeverRG

我也遇到了这个错误,请问应该怎么解决?

降级npoi到和mag一样的版本

我检查了下,没用npoi这个包,但还是报了这个错,不折腾了,换其他库了,谢谢了

那怎么会冲突呢,肯定是有包冲突了,我是同时用了npoi和mag,你可以逐步排查是哪个包冲突了

huguodong avatar Sep 05 '24 04:09 huguodong