how to avoid [Content_Types].xml in .net's ZipPackage class

前端 未结 6 958
星月不相逢
星月不相逢 2021-01-07 19:09

I wish to know if there is any way to avoid to have a [Content_Types].xml file inside the zip file while using .net\'s ZipPackage

6条回答
  •  一生所求
    2021-01-07 20:04

    You can also set private field _contentTypeHelper of System.IO.Packaging.Package to null ( using DynamicObject ).

提交回复
热议问题