From d19c6f0c4b72d4d3b4589ff5cc360d328d40f9e2 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Mon, 23 Mar 2026 15:53:56 -0500 Subject: [PATCH] fix: upgrade SharpCompress from 0.38.0 to 0.47.3 (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SharpCompress 0.47.3 renamed ReaderFactory.Open() to OpenReader() and now requires an explicit ReaderOptions parameter. The synchronous API is still available — no async conversion needed. Closes #12 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/PSProxmoxVE.Core/Models/Vms/OvfMetadata.cs | 2 +- src/PSProxmoxVE.Core/PSProxmoxVE.Core.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PSProxmoxVE.Core/Models/Vms/OvfMetadata.cs b/src/PSProxmoxVE.Core/Models/Vms/OvfMetadata.cs index b9f8364..eca30cb 100644 --- a/src/PSProxmoxVE.Core/Models/Vms/OvfMetadata.cs +++ b/src/PSProxmoxVE.Core/Models/Vms/OvfMetadata.cs @@ -86,7 +86,7 @@ namespace PSProxmoxVE.Core.Models.Vms private static string? ExtractOvfFromTar(string tarPath) { using var stream = File.OpenRead(tarPath); - using var reader = SharpCompress.Readers.ReaderFactory.Open(stream); + using var reader = SharpCompress.Readers.ReaderFactory.OpenReader(stream, new SharpCompress.Readers.ReaderOptions()); while (reader.MoveToNextEntry()) { diff --git a/src/PSProxmoxVE.Core/PSProxmoxVE.Core.csproj b/src/PSProxmoxVE.Core/PSProxmoxVE.Core.csproj index ee61a0e..896f6a4 100644 --- a/src/PSProxmoxVE.Core/PSProxmoxVE.Core.csproj +++ b/src/PSProxmoxVE.Core/PSProxmoxVE.Core.csproj @@ -18,7 +18,7 @@ - +