Feature: implement support for Linux and macOS on .NET Core 8+#24
Open
IsaMorphic wants to merge 12 commits into
Open
Feature: implement support for Linux and macOS on .NET Core 8+#24IsaMorphic wants to merge 12 commits into
IsaMorphic wants to merge 12 commits into
Conversation
1fd0b36 to
8d8c596
Compare
22b0502 to
90d1009
Compare
Contributor
Author
|
Key issues that have yet to be addressed in this PR are the size mismatch of |
added 5 commits
June 7, 2026 13:50
Contributor
Author
|
@JeremyAnsel this is ready for review. Thank you for your collaboration! |
Owner
|
LGTM. |
Contributor
Author
|
Just tested this on macOS. Works there as well! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces support for the Linux and macOS versions of 7-Zip by leveraging the
NativeLibrarywrapper API provided by .NET Core. Unusedkernel32.dllAPIs are also removed to make sure that cross-platform support is viable. Since 7-Zip does not use native COM, all the other code should work as expected on all platforms.Unit tests are also adapted to support Unix file paths (i.e. using slashes instead of backslashes) and, importantly, string marshalling code now uses correct character sizes across all platforms.
Fixes #22. Tested on WSL2 Ubuntu 24.04 and modern macOS. Not all 7-Zip features supported on Windows are supported cross-platform. Check
SharpSevenZipLibraryManager.CurrentLibraryFeaturesto see what's available on your platform.