fix: upgrade SharpCompress from 0.38.0 to 0.47.3 (#12)

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) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-23 15:53:56 -05:00
parent 40a1390094
commit d19c6f0c4b
2 changed files with 2 additions and 2 deletions
@@ -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())
{
+1 -1
View File
@@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
<PackageReference Include="SharpCompress" Version="0.47.3" />
</ItemGroup>
</Project>