Skip to content

why restore folder has different structure between nuget global packages folder and nuget install #10579

Answered by zivkan
Perry004 asked this question in Q&A
Discussion options

You must be logged in to vote

The answer to "why" is because the folder layout you see when doing "nuget.exe install" was the only folder layout when NuGet was originally created. I think it was when PackageReference was added, the global package folder layout was changed because for performance reasons, and the global packages folder is considered a location that NuGet "owns", so is acceptable to modify in incompatible ways. I wasn't in the team at the time, but I think I remember others telling me that some customers did find this impactful and complained about the change. But since this is a location that only Nuget is intended to use, it was considered acceptable, given the benefits it provided.

However, customers…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkolev92
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@zivkan
Comment options

@Rand-Random
Comment options

@zivkan
Comment options

@Rand-Random
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #10560 on February 18, 2021 18:14.