没有人管理,使具有DNX核心5 OpenXML的工作? [英] Did anyone manage to make OpenXml work with dnx core 5?

查看:289
本文介绍了没有人管理,使具有DNX核心5 OpenXML的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们必须使用DNX核心5和OPENXML,为XLS出口,在我们的应用程序。

We have to use DNX core 5 and OpenXml, for XLS export, in our app.

这似乎是OpenXML的依赖性不支持,根据错误消息我得到了:

It seems like the OpenXml dependency is not supported, according to the error message I got:

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

下面是与问题相关的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节点似乎并没有解决问题。

Adding manually the same frameworkAssemblies element to the "dnxcore50" node does not seem to fix the problem.

删除dnxcore50节点,使应用程序进行编译,但是这种妥协,DNX核心优势,5.0的好处。

Removing the "dnxcore50" node makes the app to compile, but this compromises the benefits of dnx Core 5.0 advantages.

这类似的问题没有正确回答我的问题:

This similar question did not properly answer my question : Open XML in dnx5.0 / aspnext

有没有人有办法解决吗?

Does anyone have a solution ?

推荐答案

不幸的是,目前还没有的NuGet包打开XML SDK。
然而,有些人已经在努力创造这样的包:
https://github.com/OfficeDev/Open-XML-SDK/issues/65

Unfortunately there is currently no nuget package for the Open Xml SDK. However, some people are already working on creating such a package: https://github.com/OfficeDev/Open-XML-SDK/issues/65

这篇关于没有人管理,使具有DNX核心5 OpenXML的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆