简体   繁体   中英

(Not) Adding NuGet packages to GIT on ASP.NET

Having worked with composer , npm and different others, developers don't upload dependencies nor binary files to source control. That being said, as my first time working with NuGet packages, I noticed they are being included by default ( dlls and exes ).

So either there is no command relative to npm install that will download every dependency listed on a file and I have to upload dlls and exe to source control, or this is done by default by visual studio as a mistake. Which one is it? If it does have a way to restore package, which one it is?

PS: I haven't made the first commit yet; waiting to exclude/untrack anything that doesn't need to be on source control

Generally you do not put NuGet packages in the source control. There is an option to allow NuGet to restore required packages as a part of the build process. Also you can restore those packages manually from the command line or from the UI, similar to npm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM