UpgradeDocumentFormat.OpenXml from Version 2.5.5631.0 to 2.8.1 RRS feed

  • Question

  • Hi, I am trying to upgrade DocumentFormat.OpenXml from 2.5 to latest stable version.

    After NuGet latest version of Document Format Open XML my code is showing errors like the following.

    Severity Code Description Project File Line Suppression State
    Error CS0012 The type 'OpenXmlPart' is defined in an assembly that is not referenced. You must add a reference to assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. GCMS.Templates C:\GIT\ReporterSuite\vip\GCMS.Templates\Excel\SpreadsheetWriter.cs 124 Active

    For the following line line of code (the error applies to the second line)

                var workbookPart = sDoc.WorkbookPart;
                var wXDoc = workbookPart.GetXDocument();

    I can't find my advice anywhere so some advice or help gratefully received.


    Thursday, April 4, 2019 10:41 AM