 |
BOOK: Beginning ASP.NET 4.5 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

December 14th, 2013, 08:58 PM
|
|
Authorized User
|
|
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
|
|
Hi,
I have two simple questions...
Thorough out your book, you used nuget packages a few times... and that's very usefull...
but instead using Package Manager Console, I download them from nuget.org, then add the packages to package manager in visual studio... so I can install them without having an online connection...
such as Microsoft.AspNet.Providers...
Does Package Manager Console work in offline?
if it does, is it enough for it or it has to be online to do something special??? (which I don't have any idea if it does!)...
newbie in nuget, sorry...
thanks in advance
Last edited by Kourosh94; December 15th, 2013 at 04:49 AM..
|
|

December 15th, 2013, 05:06 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
NuGet stores copies of packages you download for offline use. So, the next time you install the same package, it uses the locally cached copy instead of downloading the package again. Obviously, for new packages and updates you need to be connected to the internet.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

December 15th, 2013, 09:12 AM
|
|
Authorized User
|
|
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
|
|
Hi,
thank you for answering:)
so basically you're saying if I just copy NuGet cache folder into another computer, I can use them without connection to internet?
|
|

December 15th, 2013, 05:18 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That's not what I said ;-) I said it uses packages previously downloaded on the local machine. I don't know if simply copying the cache folder to another machine is enough; maybe downloaded packages are registered as well. I'd say: give it a try.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

December 16th, 2013, 11:09 AM
|
|
Authorized User
|
|
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
|
|
here is the simple steps I done and then I can use packages without internet in future :
1- Create an Account in NuGet
2- Download any packages you want from nuget.org...
3- Save packages in a folder
4- in Visual Studio, from Tools menu, go to Options...,then Package Manager, click on add or plus symbol
5- type a Name and put the folder address (you created in step 3) in Source...
6- you need to deselect nuget.org...
Done...
let me say, it's not recommended if you have an online connection... Do this if you are absolutely need it... otherwise you won't get updated packages...
Thanks Imar... the Cache folder you told, saves me a lot of works:)
|
|
The Following User Says Thank You to Kourosh94 For This Useful Post:
|
Imar (December 16th, 2013)
|
|
 |
|