mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Extract rar with password does not work #169
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HamzaHizam on GitHub (Apr 28, 2017).
In my app I need to Extract rar with password but I cant find any thing in google help me.
but I got error in RarArchive.Open that say
**Error 2 No overload for method 'Open' takes '3' arguments C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 40 38 TryToUnRarfiFles
**
-And I tried like that here https://github.com/adamhathcock/sharpcompress/issues/213
but I got error again in --new ReaderOptions()-- and said
Error 2 The type or namespace name 'ReaderOptions' could not be found (are you missing a using directive or an assembly reference?) C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 130 64 TryToUnRarfiFles
...
Please if any one can help me ...
@adamhathcock commented on GitHub (Apr 29, 2017):
Did you try looking at the options or tests instead of copy/pasting other things?
You're likely looking at old samples as the API surface changed
@HamzaHizam commented on GitHub (May 1, 2017):
Yes I think that. but I need any way to Extract rar with password may you help..
@adamhathcock commented on GitHub (May 1, 2017):
Just look at the tests. Dig a little.
https://github.com/adamhathcock/sharpcompress/blob/master/test/SharpCompress.Test/Rar/RarArchiveTests.cs#L16