ClosedXML and System.Memory Error in .NET 8: Anyone Solved This?

Artillis Prado 0 Reputation points
2024-10-30T20:50:31.79+00:00

Hi everyone! I’m migrating a project from .NET 4.8 to .NET 8. The ClosedXML library is compatible with .NET 8, but I’m encountering an error when using the XLWorkbook class. Despite installing System.Memory, the error still occurs, as shown in the image below. Has anyone experienced this issue or found a fix? Thanks in advance for any help!

User's image

Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,851 Reputation points Volunteer Moderator
    2024-10-30T22:51:32.8333333+00:00

    did you also include:

    System.Numerics.Vectors
    System.Buffers
    System.Runtime.CompilerServices.Unsafe

    though they should have been picked up as transient dependencies.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.