C# DocumentFormat.OpenXml.Packaging 添加为参考
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19716000/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
DocumentFormat.OpenXml.Packaging add as a reference
提问by Tyler
I try to add the DocumentFormat.OpenXml.Packaging
reference in Visual Studio 2012
. But if I go to "Reference" > "Add reference" there is not reference like this. I was googling the whole evening but still don't find it. Often I saw that I have to look at ".NET" tab in references. But there is no tab called ".NET". Can someone please help me to get out of this dumb situation?
我尝试DocumentFormat.OpenXml.Packaging
在Visual Studio 2012
. 但是,如果我转到“参考”>“添加参考”,则没有这样的参考。我整个晚上都在谷歌上搜索,但仍然没有找到。我经常看到我必须查看参考文献中的“.NET”选项卡。但是没有名为“.NET”的选项卡。有人可以帮我摆脱这种愚蠢的情况吗?
Thanks!
谢谢!
采纳答案by roemel
Go to your Solution Explorer
> right click on references
and then click Manage NuGet Packages
. Then search in tab "Online" for DocumentFormat.OpenXml
and install it. After you can use DocumentFormat.OpenXml
.
转到您的Solution Explorer
> 右键单击references
,然后单击Manage NuGet Packages
。然后在“在线”选项卡中搜索DocumentFormat.OpenXml
并安装它。之后就可以使用了DocumentFormat.OpenXml
。
回答by Amrik
OfficeOpenXml and ExcelPackage is part of this package.
OfficeOpenXml 和 ExcelPackage 是这个包的一部分。
回答by Chong Ching
https://www.nuget.org/packages/DocumentFormat.OpenXml/
https://www.nuget.org/packages/DocumentFormat.OpenXml/
Nu get: type in the below
Nu get:在下面输入
Install-Package DocumentFormat.OpenXml
安装包 DocumentFormat.OpenXml