gpt4 book ai didi

asp.net - 有没有人设法让 OpenXml 与 dnx core 5 一起工作?

转载 作者:行者123 更新时间:2023-12-02 03:20:32 25 4
gpt4 key购买 nike

我们必须在我们的应用程序中使用 DNX 核心 5 和 OpenXml 进行 XLS 导出。

根据我收到的错误消息,似乎不支持 OpenXml 依赖项:

Error  NU1002  The dependency DocumentFormat.OpenXml 2.5.0 in project does not support framework DNXCore,Version=v5.0. project.json    

Here is the part of the project.json associated with the problem:

"frameworks": {
"dnx451": {
"dependencies": { },
"frameworkAssemblies": {
"WindowsBase": "4.0.0.0"
}
},
"dnxcore50": {
"dependencies": {
}
}},

将相同的 frameworkAssemblies 元素手动添加到“dnxcore50”节点似乎无法解决问题。

删除“dnxcore50”节点使应用程序可以编译,但这会损害 dnx Core 5.0 的优势。

这个类似的问题没有正确回答我的问题: Open XML in dnx5.0 / aspnext

有没有人有解决办法?

最佳答案

遗憾的是,目前没有用于 Open Xml SDK 的 nuget 包。然而,有些人已经在着手创建这样一个包: https://github.com/OfficeDev/Open-XML-SDK/issues/65

关于asp.net - 有没有人设法让 OpenXml 与 dnx core 5 一起工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33824435/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com