Open adriancs2 opened 1 month ago
Note: I'm not sure how is this works under the hood, the fix that I've shared above is a code fix suggested by Claude, so that my project can continue to compile without error. And yupe I'm not sure that's the correct fix or not xD since my project compiled without error, I just assumed that the fix is "doing it's job" :)
I have tried myself the last source code, by adding Net Framework 4.8 to the project. Unit tests are not failing.
I have prepared a new beta version in nuget 4.0.2-beta1
so you can try.
hi @adriancs2
Will you be able to re-test this? Otherwise, I will close this issue as resolved.
Here is the latest code of Zipstorer:
In .NET Framework 4.8, you will see this error:
This is because CodePagesEncodingProvider is not available in .NET Framework 4.8 by default.
To fix this issue for .NET Framework 4.8, There are couple of options:
Option 1: Use the built-in Encoding.GetEncoding method, which should work for codepage 437 in .NET Framework 4.8 without additional packages.
Option 2: If you need CodePagesEncodingProvider for other reasons in .NET Framework 4.8, you can add the System.Text.Encoding.CodePages NuGet package to your project.
For doing the option 1: Here's the example of using built-in Encoding.GetEncoding