Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Sep 10, 2025 8:41 pm

I have been trying to run a dotnet solution in linux-x64, but was getting errors related to "System.Drawing.Common not supported in linux ..."

Runtime: linux-musl-x64
SDK: .NET 8
Used package: Spire.XLS:15.8.3

I have tried several fixes from the issues raised by others:

The most common one was:
Installed Spire.XLS.NETforStandard (15.8.3) and SkiaSharp.NativeAssets.Linux.NoDependencies (latest 3.xx , 2.88, 2.8 [none works]).
Here is the new error message:
"The version of the native libSkiaSharp library (80.0) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [116.0, 117.0)."

Could you please suggest how can I resolve this issue?

prabin_slb
 
Posts: 3
Joined: Thu May 29, 2025 2:44 pm

Thu Sep 11, 2025 1:42 am

Hello,

Thank you for your inquiry.
On Linux systems, please install Spire.XLS for .NETStandard along with SkiaSharp.NativeAssets.Linux.NoDependencies ≥ 3.116.1.
Based on the error information you provided, the issue stems from an incompatibility between your current system environment and the version of SkiaSharp required by Spire.XLS for .NET Standard (version 15.8.3). The newer version of Spire.XLS has enhanced performance and security, which raises the SkiaSharp dependency requirement to version 3.116.1 or higher. However, your environment currently has SkiaSharp version 2.80.0, which is incompatible with v3.116.1.
Please note that SkiaSharp v3.116.1 also has higher requirements for the GLIBC version on Linux systems, specifically requiring GLIBC ≥ 2.29. Your Linux system needs to have the corresponding environment.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Tue Sep 16, 2025 8:11 pm

Thanks, the proposed solution resolves the issue!

In my system, following packages are flagged for vulnerability. Do you have any plans to resolve them?

System.Drawing.Common, installed version 4.7.0, fixed version 4.7.2, 5.0.3
System.Net.Http.WinHttpHandler, installed version 4.0.0, fixed version 4.0.1

I am not sure if both of them are dependent on Spire.XLSfor.NETSTANDARD:15.8.3.

prabin_slb
 
Posts: 3
Joined: Thu May 29, 2025 2:44 pm

Wed Sep 17, 2025 2:45 am

Hello,

Thank you for your feedback.
Spire.XLS for .NET Standard 15.8.3 operates without dependencies on the System.Drawing.Common and System.Net.Http.WinHttpHandler packages.
To address potential security concerns, we recommend either removing these two packages from your project and then install Spire.XLSfor.NETStandard 15.8.3 individually via NuGet to test.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Return to Spire.XLS

cron