System.IO.Packaging

前端 未结 8 1476
感情败类
感情败类 2020-12-24 00:15

I have my project set to .NET Framework 4.0. When I add System.IO.Packaging, it says that it doesn\'t exist. It also doesn\'t show up when I try to add it as a

相关标签:
8条回答
  • 2020-12-24 00:47

    System.IO.Packaging is a namespace, not a reference. Most (all?) of the classes within the namespace, such as ZipPackage, are deployed in WindowsBase.dll.

    Make sure you have a reference to WindowsBase.dll - if you do, you can just add: using System.IO.Packaging; to your .cs files, and you'll be fine.

    Note that you can see this in the documentation for any class on MSDN. For example, in ZipPackage, it lists:

    Namespace:  System.IO.Packaging
    Assembly:  WindowsBase (in WindowsBase.dll)
    
    0 讨论(0)
  • 2020-12-24 00:50

    System.IO.Packaging v4.0.30319 is in WindowsBase.dll v4.0.30319

    For windows 10 maybe you could found here

    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\

    0 讨论(0)
提交回复
热议问题