Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly 'System.Threading.Tasks.Extensions' or one of its dependencies #854

Open
leefsmp opened this issue Nov 17, 2023 · 0 comments
Labels
bug tar Related to TAR file format

Comments

@leefsmp
Copy link

leefsmp commented Nov 17, 2023

Describe the bug

Greeting Folks,

I am trying a basic sample inspired from the doc, but getting the following exception. What am I doing wrong?

"Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified."

private static void CreateArchive(string projectFolder)
{
    var tarPath = Path.Combine(projectFolder, "result.tar.gz");

    using (var outStream = File.Create(tarPath))
    using (var gzoStream = new GZipOutputStream(outStream))
    using (var tarArchive = TarArchive.CreateOutputTarArchive(gzoStream))
    {
        tarArchive.RootPath = projectFolder.Replace('\\', '/');

        foreach (var file in outputFiles)
        {
            var entry = TarEntry.CreateEntryFromFile(file);
            entry.Name = Path.GetFileName(file);
            tarArchive.WriteEntry(entry, true);
        }

        tarArchive.Close();
    }
}
Screenshot 2023-11-17 at 09 41 45

I installed the following Nuget packages, I'm not seeing a version 4.2.0.0 available ...

Screenshot 2023-11-17 at 09 50 11

Reproduction Code

No response

Steps to reproduce

build and run attached code

Expected behavior

valid tar.gz archive produced

Operating System

Windows

Framework Version

No response

Tags

Tar

Additional context

No response

@leefsmp leefsmp added the bug label Nov 17, 2023
@github-actions github-actions bot added the tar Related to TAR file format label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tar Related to TAR file format
Projects
None yet
Development

No branches or pull requests

1 participant