CRM 2011 SDK 读取解决方案 zip 文件
CRM 2011 SDK 中是否有任何对象/类可供我提供自定义 zip 文件,然后我可以在导入之前简单地使用其属性/方法来读取/验证自定义 zip 文件的内容?
我能找到的唯一相关对象是 ImportSolutionRequest。但它仅使用其上公开的 CustomizationFile 属性将自定义 zip 文件作为 byte[]。但它不允许我读取文件的内容。太糟糕了:(
另外,如果有任何其他方法可以实现同样的目的,我愿意接受。
Is there any object/class in CRM 2011 SDK to which I can feed the customizations zip file and then I can simply use its properties/methods to read/validate the contents of the customizations zip file before importing?
The only relevant object I was able to find was ImportSolutionRequest. But it only takes the customizations zip file as a byte[] using the CustomizationFile property exposed on it. But it doesnt let me read the contents of the file. Too bad :(
Also, if there is any other way to achieve the same I am open for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据查看customizations.zip 文件的内容,应该可以使用 System.IO.Packaging 命名空间来解压 zip,然后将内部的customizations.xml 读入 XML 文档。
Based on looking at the contents of a customizations.zip file, it should be possible to use the System.IO.Packaging namespace to unpack the zip and then read the inner customizations.xml into an XML document.