Could not load file or assembly 'DocumentFormat.OpenXml

后端 未结 7 1521
时光说笑
时光说笑 2021-01-08 01:15

I\'m keep getting this error is VS2013

Could not load file or assembly \'DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31b

相关标签:
7条回答
  • 2021-01-08 01:57

    At the time of writing this answer, there are 3 versions of Open XML SDK:

    • Open XML SDK 1.0 (NuGet link)
    • Open XML SDK 2.0 (NuGet link)
    • Open XML SDK 2.5 (NuGet link)

    You most probably have referenced in your project DLL version 2.5 which was installed on your machine.
    To get required v2.0 assembly, I suggest you to use NuGet I provided above.

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