Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to install ClosedXML dependency

I need to install ClosedXML dependency to build a C# project with .net framework 4.7.2 but when trying to install I always get the same error: "Cannot resolve dependency 'SixLabors.Fonts'. Sources used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'"

I have tried everything to install from the nuget package manager

like image 830
Francisco Javier Espinosa L Avatar asked Dec 22 '25 15:12

Francisco Javier Espinosa L


1 Answers

I faced the same proplem when trying to install ClosedXML today. ClosedXML depends on the SixLabors.Fonts library which is only available in beta at the moment.

To find the library with the NuGet Browser, make sure to check the "Include prerelease" box. You should then be able to find it listed below. After installing SixLabors.Fonts, you should be able to install ClosedXml without any further issues.

enter image description here

like image 116
clfaster Avatar answered Dec 24 '25 12:12

clfaster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!