New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MissingMethodException: SixLabors.Fonts #2146
Comments
I'm getting a similar message:
That happens when I try to The project I have is in .NETFramework 4.7.2, although we are planning on migrating to .NET7, which somehow might fix things with SixLabors.Fonts. |
I got the same error message. using Version: 101 and 102 Project: asp.net web form, .NET Framework 4.7.2 Code:
I found that older versions like 75 works just fine with .NET Framework 4.7.2 |
I received the same error when trying to open an existing excel file with 102 and .NET Framework 4.7.2. Like hobwell stated above I uninstalled ClosedXML 102 and the uninstalled SixLabors.Fonts 1.0.0 and then installed SixLabors.Fonts 1.0.0-beta19 and then installed ClosedXML 102 again and it works now. |
NuGet hates (ignores) beta release with package.config. That means it resolves 1.0.0. instead of beta19 leading to breakdown due to several breaking changes. Fixed in #2149 and I am making a 0.102.1 release. |
Read and complete the full issue template
Do not randomly delete sections. They are here for a reason.
Do you want to request a feature or report a bug?
Did you test against the latest CI build?
If you answered
No
, please test with the latest development build first.Version of ClosedXML
e.g. 0.102.0
What is the current behavior?
When calling worksheet.Rows().AdjustToContents() an exception is thrown:
System.MissingMethodException: 'Method not found: 'System.Collections.Generic.IEnumerable`1<SixLabors.Fonts.GlyphMetrics> SixLabors.Fonts.FontMetrics.GetGlyphMetrics(SixLabors.Fonts.Unicode.CodePoint
This appears to be related to the recent Release build of SixLabors.Fonts (2023-08-11). Reverting to SixLabors.Fonts version 1.0.0-beta19 resolves the issue.
What is the expected behavior or new feature?
Row heights would be adjusted to accommodate cell text.
Is this a regression from the previous version?
No, it appears to be related to the latest release of SixLabors.Fonts
Reproducibility
This is an important section. Read it carefully. Failure to do so will cause a 'RTFM' comment.
Without a code sample, it is unlikely that your issue will get attention. Don't be lazy. Do the effort and assist the developers to reproduce your problem. Code samples should be minimal complete and verifiable. Sample spreadsheets should be attached whenever applicable. Remove sensitive information.
Code to reproduce problem:
The text was updated successfully, but these errors were encountered: