nuget - what purpose does 'package restore' serve? -
nuget - what purpose does 'package restore' serve? -
i understand nuget's bundle restore downloads , 'installs' various required packages before building project. can't work out purpose serves.
as far can tell, 'installation' of bundle during bundle restore, isn't same package's actual installation - example, if following:
install jquery bundle (note adds jquery script files project's 'scripts' directory) delete added jquery script files delete 'packages' directory (steps 2 & 3 simulate state on build machine, or other dev's machine) do build (triggering bundle restore)at point build states
2> installed 'jquery 1.9.1'. however, jquery package's script files not added 'scripts' folder, , files not added project.
this means have check these files source command anyway.
which means when update package, have manage adding/removing new/old files (since different, versioned filenames used). otherwise 'scripts' folder fills endless history of versioned script files.
so, if have check in anyway, , have manually manage adding , removing files when updating, benefit of restoring bundle on build? purpose serve?
more point, why doesn't serve obvious purpose: automatically adding package's files project?
using nuget without committing packages source control discusses reason behind bundle restore.
package restore means not have check packages folder source control. 1 time enabled project download packages , set them packages folder @ build time if missing. not, have found, add together bundle files project. in case of jquery files nuget bundle added project. other nuget packages include 1 or more binary files.
nuget
Comments
Post a Comment