问题描述
我正在使用 C#.net Windows 桌面应用程序.我也想在其他平台上运行这些应用程序.所以,我使用 Mono 2.10 作为交叉编译器.在运行时,意外地我的应用程序通过说出类似
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,version=2.0.5022.0,culture=neutral,PublicKeyToken=31bf3856ad364e35"或其依赖项之一.
我不知道这里有什么问题...我已经在 c:program filesopen xml sdkv2libDocumentFormat.OpenXml.dll 上安装了 openxml sdk2.0.
I don't know what is problem here...I have installed openxml sdk2.0 on c:program filesopen xml sdkv2libDocumentFormat.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).
这篇关于如何在 Mono2.10 上包含 DocumentFormat.OpenXml.dll 的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!