I have the following code to extract a single file from a ziparchive.
public void ExtractSingleFile(string fileName,string source)
{
var archive = OpenRead(source);
var entry = archive.GetEntry(fileName);
entry.ExtractToFile(Path.Combine("/temp", fileName));
}
When running, I get the following error:
System.MissingMethodException: 'Methode not found: Void System.IO.Compression.ZipFileExtensions.ExtractToFile(System.IO.Compression.ZipArchiveEntry, System.String).'
Does anybody knows how to fix this?
I tried cleaning and rebuilding, searched for updates and nuget and re-added the references as mentioned in this post