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
The new standard for NuGet is embedding license files directly in packages to ensure immutability (see wiki). Unfortunately, the package manager experience is not great for these packages in two common scenarios:
Packages hosted in local folders will expose the license metadata embedded in the .nupkg but the current dialog only knows how to handle deflated packages, and will crash when trying to access the license terms. A possible workaround is to check whether the package is an instance of LocalPackageSearchMetadata and access the local package reader stream for the license file directly.
The MyGet server does not correctly handle embedded license files, resulting in both no license metadata and no license URL being available when browsing packages with embedded licenses. This is unfortunate for packages requiring license acceptance as there is currently no way to make the licenses visible.
Unfortunately for 2. it seems that MyGet server version for NuGet has failed to keep up with protocol updates, and it is likely this will continue to be the case. We should probably start considering alternatives for hosting packages in the long term.
The text was updated successfully, but these errors were encountered:
The current outage in MyGet.org exposed the fragility of relying on it for a permanent hosting solution. Our current recommendation will be for the community to upload all packages to NuGet.org. For the next release we will consider transitioning into a separate service for experimental / curated feeds. Some alternatives below:
The new standard for NuGet is embedding license files directly in packages to ensure immutability (see wiki). Unfortunately, the package manager experience is not great for these packages in two common scenarios:
LocalPackageSearchMetadata
and access the local package reader stream for the license file directly.Unfortunately for 2. it seems that MyGet server version for NuGet has failed to keep up with protocol updates, and it is likely this will continue to be the case. We should probably start considering alternatives for hosting packages in the long term.
The text was updated successfully, but these errors were encountered: