You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<icon> node cause "This operation is not supported." exception #869
In the PackageHelper the files from the ZipArchive package are added to the PackageBuilder. But zip streams don't support accessing its Length property.
Activity
clairernovotny commentedon Nov 16, 2019
Please try the latest version, 5.5.28. That should have working icon support.
GF-Huang commentedon Nov 16, 2019
I have try
5.5.28just now, but has same issue.campersau commentedon Nov 16, 2019
This line throws the exception: https://github.com/NuGet/NuGet.Client/blob/c5c6ba438f4929e7ebe75e45ad69a8b113f7c388/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageBuilder.cs#L630
In the
PackageHelperthe files from theZipArchivepackage are added to thePackageBuilder. But zip streams don't support accessing itsLengthproperty.NuGetPackageExplorer/PackageViewModel/Utilities/PackageHelper.cs
Line 25 in 9a3863d
Steps to reproduce:
<icon>(likeNewtonsoft.Json) or open a local package which uses an<icon>.File->Publish...orFile->Save as...orFile->SaveA possible fix would be to check for an icon file, extract it from the zip and supply that instead.
clairernovotny commentedon Nov 16, 2019
Was really hoping to avoid extracting icons as temporary files :/
GF-Huang commentedon Jan 15, 2020
Thank you very much for fix this issue. 🌹
i-e-b commentedon May 24, 2021
This issue also affects "Readme" files in the release:
NuGet Package Explorer - Zip - X64 - (5.10.4+4ab9498d27)