Shakthi
Shakthi

Reputation: 141

ClosedXML is not working with .NETCoreApp2.0

I am new to Dotnet-core and working on an app which has Excel manipulation.I chose ClosedXML for the same. When I create a sheet I run into the following issuTypeLoadException: Could not load type 'System.Drawing.ColorTranslator' from assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.e I had problems running ClosedXML in .net core. Earlier when I used .netcoreapp1.1, faced some build issues(DataTable and Dataset were not referenced properly) and then I had to upgrade to version 2.0, But still it seems to be not working. What are my options

Upvotes: 1

Views: 3259

Answers (1)

Martin Ullrich
Martin Ullrich

Reputation: 100791

System.Drawing is not available on .NET Core 2.0 or .NET Standard 2.0 so ClosedXML will not work on those platforms.

Support for it is planned in .NET Core 2.1, you can track ongoing discussions and work on this GitHub issue.

Upvotes: 4

Related Questions