I installed .net core from this site. Playing with it led to a number of related package management questions:
- The
dotnet restore
command proceeded to "install" .net core NuGet packages. Where were those packages "installed"? A new folder was not created. - The
dotnet restore
for the "hello world" minimal example required about a hundred NuGet packages, where 99% were presumably irrelevant to the "hello world" app. Granted, a .net native build will remove all that is not needed - but I expected that therestore
also would have grabbed very little (three or four packages, not a hundred). Why this behavior? - I created a second "hello world" project and again ran
dotnet restore
. This time no packages were installed at all. It seems all the packages installed the first time-around went into some global location to be shared. I thought .Net Core didn't work that way. I thought .Net Core projects kept all their dependencies locally. The only framework I targeted wasdnxcore50
. Why this behavior? - I would like to "uninstall" all these global packages, and try again (just for learning purposes). How might that be accomplished? Remember, as stated in question #1, I don't know where all those files were installed.
- Almost all of the packages installed via the
restore
command were listed as beta. Odd. I thought .Net Core was in RC1, not beta. Confused by this. Why this behavior?
I'm also curious of what documentation could/would have explained all this to me. I tried googling for each of these questions, and found nothing (perhaps just horrible google-fu?).
dotnet publish
to generate deployment packages. The self-contained deployment mode would grab all dependencies to the same folder, docs.microsoft.com/en-us/dotnet/core/deploying This thread was unfortunately posted before Microsoft created the new Docs site, so any future reader should go and check out the new Docs. – Lex Li