Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#854 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

まず CreateArchive サンプルと記載されている NuGet パッケージから始め、次にプロジェクトの framework と System.Threading.Tasks.Extensions の依存関係解決を調査します。issue に記載されている Windows でのビルドと実行を再現します。サンプルが実行され、assembly-load exception なしで有効な tar.gz アーカイブが生成されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug tar
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

主要言語
C#
スター
3.9k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

icsharpcode/SharpZipLib のほかの issue

icsharpcode/SharpZipLib の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。