Problem Building Open-Xml-Sdk

Home Forums Open-Xml-Sdk Problem Building Open-Xml-Sdk

This topic contains 4 replies, has 3 voices, and was last updated by  Nickhaley 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #3967


    Following the Screen-Cast: Introduction to Open-Xml-PowerTools I got the SDK and PowerTools from Git. When I built the SDK in Visual Studio Community 2015 I got the following output:

    1>—— Build started: Project: DocumentFormat.OpenXml, Configuration: Debug Any CPU ——
    1> C:\Program Files\dotnet\dotnet.exe build “C:\Users\david\Documents\WindowsPowerShell\Modules\Open-XML-SDK\DocumentFormat.OpenXml” –configuration Debug –no-dependencies

      Project DocumentFormat.OpenXml (.NETFramework,Version=v4.5) will be compiled because expected outputs are missing

    1> Compiling DocumentFormat.OpenXml for .NETFramework,Version=v4.5
    1> Compilation succeeded.
    1> 0 Warning(s)
    1> 0 Error(s)
    1> Time elapsed 00:00:16.5789434
    2>—— Build started: Project: DocumentFormat.OpenXml.Tests, Configuration: Debug Any CPU ——
    2> C:\Program Files\dotnet\dotnet.exe build “C:\Users\david\Documents\WindowsPowerShell\Modules\Open-XML-SDK\DocumentFormat.OpenXml.Tests” –configuration Debug –no-dependencies

      Project DocumentFormat.OpenXml.Tests (.NETFramework,Version=v4.5.1) will be compiled because expected outputs are missing

    2> Compiling DocumentFormat.OpenXml.Tests for .NETFramework,Version=v4.5.1
    2> Compilation succeeded.
    2> 0 Warning(s)
    2> 0 Error(s)
    2> Time elapsed 00:00:07.6281830
    ========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

    I believe as a result of the underlined lines the DLL’s end up in …\bin\debug\net45. When I go to PowerShell and execute

    import-module Open-Xml-PowerTools

    the script cannot find …\bin\debug\DocumentFormat.OpenXml.dll presumably because it is in …\bin\debug\net45. In addition the script is unable to find …bin\debug\System.IO.Packaging.dll because this dll is nowhere to be found. The script is again expecting it to be in …\bin\debug but it is not there nor is it in …\bin\debug\net45.



    I have solved the build problem. There is a step missing in the Screen-Cast: Introduction to Open-Xml-PowerTools. It is actually provided in the Screen-Cast: Open Xml Sdk Version 2.6 at

    The secret is, after doing

    $ git clone

    you should execute

    $ cd Open-XML-SDK
    $ git checkout master
    $ cd ..

    This adds the missing projects (especially the crucial System.IO.Packaging) which makes everything else work.



    This didn’t work for me. After doing the git checkout master, I’m getting this on DocumentFormat.OpenXml

    Your project.json doesn’t list ‘win’ as a targeted runtime. You should add ‘”win”: { }’ inside your “runtimes” section in your project.json, and then re-run NuGet restore.

    ANd this on DocumentFormat.OpenXml.Tests:

    Your project is not referencing the “.NETFramework,Version=v4.5” framework. Add a reference to “.NETFramework,Version=v4.5” in the “frameworks” section of your project.json, and then re-run NuGet restore.

    • This reply was modified 6 months, 2 weeks ago by  jholliday.


    I finally got this to work by starting over with a fresh clone of the SDK. Everything is working as it should now.



    Managing Mails via Yahoo customer support phone number
    Do you know how to manage your mails? Do you wish to sort your emails? All these operations can be learnt through our customer service. We follow a customer-oriented approach which aims at assisting the clients in the best possible manner. When you will contact Yahoo Email Support, your call would be connected with one of our experts. You can share your problem without any hesitation. Our technician would analyse the issue and would offer a simplified solution.
    Are some of your mails missing? Contact us to gain information in order to search such mails by following an easy troubleshooting technique. Yahoo Email contact number is a convenient source to resolve all sorts of issues related to this service. For amateur users it might be difficult to learn basic functions like sending and deleting mails. Connect with our technician who would readily teach you these methods without any discomfort.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.