如何包括DocumentFormat.OpenXml.dll对Mono2.10参考? [英] How to include the reference of DocumentFormat.OpenXml.dll on Mono2.10?

查看:679
本文介绍了如何包括DocumentFormat.OpenXml.dll对Mono2.10参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#.NET Windows桌面Application.I也想运行这些应用程序与其他平台。所以,我使用单声道2.10作为一个跨compiler.While跑,不料我的申请被说像

I am using C#.net Windows Desktop Application.I want to run these application with other platform also. So, i am using Mono 2.10 as a cross compiler.While running,unexpectedly my Application is terminated by saying the error message like

错误:无法打开所选文件夹。结果
无法加载文件或程序集DocumentFormat.OpenXml.dll,版本= 2.0.5022.0,文化=中性公钥= 31bf3856ad364e35或它的一个依赖

我不知道是什么......我已经安装了基于C OPENXML SDK2.0这里的问题:\program files\open XML sdk\v2\lib\DocumentFormat.OpenXml.dll。

I don't know what is problem here...I have installed openxml sdk2.0 on c:\program files\open xml sdk\v2\lib\DocumentFormat.OpenXml.dll.

和也把我的应用程序EXE上的同一个地方测试目的...

and also put my application eXe on on the same place for testing purpose...

请指导我解决这个问题...

Please guide me to solve this issue...

推荐答案

您也应该确保您设置为 WindowsBase 的参考。这是必需的,因为它处理使用SDK System.IO.Packaging程序(其用于解压缩和打开的压缩的.docx / .XLSX / .PPTX作为OPC文件)。

You should also ensure you set a reference to WindowsBase. This is required to use the SDK as it handles System.IO.Packaging (which is used for unzipping and opening the compressed .docx/.xlsx/.pptx as an OPC document).

这篇关于如何包括DocumentFormat.OpenXml.dll对Mono2.10参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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