Allow disabling installing dependencies on restore by tete1030 · Pull Request #518 · GlitchEnzo/NuGetForUnity (original) (raw)
NugetForUnity is constantly adding and installing a package, which was explicitly deleted from packages.config, when opening Unity Editor after initial clone. This package (System.Threading.Tasks.Extensions) is a dependency of another. It has duplicated definition of ValueTask class with netstandard. Deleting the package is thus necessary and has not caused any issue for me, so I have adopted this solution.
I think respecting instead of updating packages.config when restoring is a reasonable case. For this reason I added an option Lock packages on restore to disable installing dependencies of a restoring package.
I also added a timeout option for nuget mirror requests. We have used customized nuget proxy with longer http request than usual (almost 20s).
