Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magicodes.IE 和npoi冲突 #557

Open
huguodong opened this issue Apr 23, 2024 · 4 comments
Open

Magicodes.IE 和npoi冲突 #557

huguodong opened this issue Apr 23, 2024 · 4 comments

Comments

@huguodong
Copy link

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

@ForeverRG
Copy link

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

@huguodong
Copy link
Author

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

降级npoi到和mag一样的版本

@ForeverRG
Copy link

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

降级npoi到和mag一样的版本

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

@huguodong
Copy link
Author

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

降级npoi到和mag一样的版本

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants