2

I am receiving a System.Io.FileNotFoundException with the assembly System.IO.Packaging when trying to use my .Net 4.6.1 Library that was working fine with my ConsoleApp.

I am trying to use this same library with a c#.Net core 2.2 Console Application, but it is not working as you can see by viewing the snippet below.

How can I get the .Net 4.6.1 Library to work with a c#.Net core 2.2 2.2 Console Application?

See below:

Click on image to enlarge Error Description

Solution (projects + NuGet Packages) :

  • OpenXml Libraby c# .Net 4.6.1

    • Nuget : DocumentFormat.OpenXml (2.9.0)
    • Nuget : System.IO.FileSystem.Primitives (4.3.0)
    • Nuget : System.IO.Packaging (4.5.0)
  • ConsoleApplication c#.Net core 2.2

yardpenalty.com
  • 1,244
  • 2
  • 17
  • 32
jodeb
  • 21
  • 1
  • 4
  • 2
    You cannot use a full framework library with a .net core application. You will need to retarget your library to use Net Standard. – ESG Mar 03 '19 at 17:52
  • The SDK for .NET Core has been out for long, https://github.com/OfficeDev/Open-XML-SDK/issues/191 – Lex Li Mar 03 '19 at 19:07

0 Answers0