Wrox Programmer Forums
|
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
 
Old December 14th, 2013, 08:58 PM
Authorized User
 
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
Default

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..
 
Old December 15th, 2013, 05:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Kourosh94 (December 15th, 2013)
 
Old December 15th, 2013, 09:12 AM
Authorized User
 
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
Default

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?
 
Old December 15th, 2013, 05:18 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Kourosh94 (December 16th, 2013)
 
Old December 16th, 2013, 11:09 AM
Authorized User
 
Join Date: Sep 2013
Posts: 18
Thanks: 8
Thanked 1 Time in 1 Post
Default

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)





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use the NuGet Package vbboyd BOOK: Professional ASP.NET MVC 3 3 December 11th, 2011 01:03 PM
online/offline status sophia ASP.NET 3.5 Basics 5 December 14th, 2009 01:27 PM
offline php scripts chayanvinayak PHP How-To 0 July 6th, 2006 01:35 PM
The webpage you requested is not available offline cathiec ASP.NET 1.0 and 1.1 Basics 0 October 6th, 2005 09:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.