thoemmi/7Zip4Powershell

SevenZipSharp.dll is missing in 2.0.0 pre-release version causing module import to fail

Closed this issue ยท 11 comments

@thoemmi SevenZipSharp.dll is missing in 7Zip4Poweshell 2.0.0 pre-release causing module import to fail:

image

2.0.0 folder content:
image

1.13.0 folder content:
image

Workaround:

  1. Download missing package from NuGet:
    https://www.nuget.org/packages/Squid-Box.SevenZipSharp/

  2. Extract SevenZipSharp.dll from netstandard2.0 folder and copy it to the module installation folder

Good catch @kborowinski, thanks for reporting. I've published an update.

@thoemmi Unfortunately it looks like there's another problem with 2.0.0. I've updated to latest version but it fails on PS 5.1 when creating an archive with following error:

image

On PS 7.1 it's fine

I guess there are two solutions?

  1. Make 2.0.0 compatible with PowerShell 6 and higher only
  2. Include SevenZipSharp.dll for dotnet 4.6.1 and select proper library, depending on platform, during module import

*sigh* Ok, thanks for trying this. I'll spend some tome tonight on this. If I can fix it, fine. If not, I'll revoke the support of PowerShell Core.
/cc @CptMikhailov

It turned out the issue is caused by the SevenZipSharp library ๐Ÿ™„ I've sent them a bug fix.

BTW, I have unlisted the 7Zip4PowerShell prereleases from yesterday.

@thoemmi Sorry for the delay, I've finally gotten around to release a version with your fix included.

Let me know if 1.3.318 still didn't fix this for you.

@thoemmi I've just closed my PR that was updating the NuGet packages to the latest versions. I didn't notice that my fork was way behind your master, sorry.

BTW the new version of Squid-Box.SevenZipSharp includes your lazy 7zip.dll path PR. It should fix the #70 (comment) and allow you to republish the test version of 7Zip4PowerShell 2.0.0 for PowerShell Core, if you wish.

@squid-box Thanks for accepting my PR, much appreciated. I've updated the package reference to the most recent version, 1.4.0.345.

@kborowinski I have published a new pre-release module with the updated Squid-Box.SevenZipSharp, https://www.powershellgallery.com/packages/7Zip4Powershell/2.0.0-beta0009. Feel free to give it a try.

Thank you all for your patience. This Powershell module does not have a high priority on my list, so it always takes me a while until I react.

@thoemmi No problems with 2.0.0-beta0009 so far but please give me another week for testing before making official release.

@thoemmi I didn't find any problems. If nobody else has reported any issues you can publish official release I think.

Thanks for testing, @kborowinski, much appreciated ๐Ÿ‘
I have just published v2.0 to the PowerShell Gallery.