Home: Flatcontainer - Download package manifest nuspec

Created on 26 Jun 2018  路  5Comments  路  Source: NuGet/Home

The API docs specify a .nuspec is downloadable from the flatcontainer API:
https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#download-package-manifest-nuspec

We would like to learn which NuGet client is making use of this endpoint.

Most helpful comment

As far as I know this isn't used. The nupkg is always downloaded and the nuspec is read from the local nupkg.

The flatcontainer format was meant to be identical to the v3 folder format on disk which has nupkg, nuspec, hash file.

The client could read the nuspec first to find dependencies instead of waiting to continue the walk until the entire nupkg has been downloaded, but the thinking was that 1 network call would be better than 2.

All 5 comments

@NuGet/nuget-client Does anyone know if we use that endpoint?

As far as I know this isn't used. The nupkg is always downloaded and the nuspec is read from the local nupkg.

The flatcontainer format was meant to be identical to the v3 folder format on disk which has nupkg, nuspec, hash file.

The client could read the nuspec first to find dependencies instead of waiting to continue the walk until the entire nupkg has been downloaded, but the thinking was that 1 network call would be better than 2.

Thanks for clarifying!

@maartenba does this address your question?

It does, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sylvainlavoie picture sylvainlavoie  路  3Comments

livarcocc picture livarcocc  路  3Comments

rrelyea picture rrelyea  路  3Comments

philippe-lavoie picture philippe-lavoie  路  3Comments

blackchoey picture blackchoey  路  3Comments