Could not load file or assembly 'System.Threading.Tasks.Extensions' or one of its dependencies
还没有人认领这个 Issue。
评估
调研方向
从 CreateArchive 示例和列出的 NuGet 包开始,然后检查项目的 framework 以及 System.Threading.Tasks.Extensions 的依赖项解析。重现 issue 中描述的 Windows 构建和运行过程;当示例能够运行并生成有效的 tar.gz 归档且不出现 assembly-load exception 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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();
}
}
I installed the following Nuget packages, I'm not seeing a version 4.2.0.0 available ...
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
icsharpcode/SharpZipLib 的其他 Issue
-
*no response* bug
难度 1/5 1 小时以内 新手友好度 78/100
icsharpcode/SharpZipLib#905 · 1 条评论 ·
-
bug bzip2
难度 4/5 3-5 天 新手友好度 45/100
icsharpcode/SharpZipLib#904 ·
-
enhancement zip
难度 2/5 1-2 天 新手友好度 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
难度 4/5 3-5 天 新手友好度 32/100
icsharpcode/SharpZipLib#901 · 1 条评论 ·
-
*no response* bug
难度 4/5 3-5 天 新手友好度 35/100
icsharpcode/SharpZipLib#894 · 1 条评论 ·
查看 icsharpcode/SharpZipLib 的全部 Issue
相似的 Issue
-
bug needs response
难度 2/5 1-3 小时 新手友好度 82/100
Adyen/adyen-dotnet-api-library#1869 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
difficulty/starter 🚀 good first issue kind/bug platform/ios 🍎 project/non-ui ⚙️ triage/untriaged
难度 2/5 1-3 小时 新手友好度 88/100
unoplatform/uno#24650 ·
-
area-ai untriaged
难度 2/5 1-3 小时 新手友好度 78/100
dotnet/extensions#7783 ·
-
untriaged
难度 1/5 1 小时以内 新手友好度 88/100
dotnet/dotnet-api-docs#13095 ·