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 November 20th, 2013, 02:31 AM
Authorized User
 
Join Date: Nov 2013
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default Unable to install Modernizr ( pg 83)

Hello,

I hope that everyone is well. Please help me with this problem if you can. I tried to follow the instructions and trying to install the package called Modernizr . However, Visual studio gives me error.
these are the steps I took

Select Tools-> Library Package Manager --> Package Manager Console
Type in Install-Package Modernizr

error message: Install-Package : The current environment doesn't have a solution open.
At line:1 char:16
+ Install-Package <<<< Modernizr
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.In stallPackageCommand


Software used: Visual Studio Express for Web 2013.

Thank you so much for your help.
 
Old November 20th, 2013, 11:24 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,

Try saving the solution first. To do this, click the Solution (the parent of the website node) in the Solution Explorer and then press Ctrl+S. This saves the .sln file after which adding a package should work.

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 2 Users Say Thank You to Imar For This Useful Post:
 
Old November 12th, 2015, 09:27 PM
Authorized User
 
Join Date: Mar 2011
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy I am having the same problem

I have saved the solution.

I type in:
PM> Install-Package Modernizr

When I hit return I still get:
"Install-Package : Unable to find package 'Modernizr'."

The solution compiles and runs fine, but I cannot add the Modernizr.
 
Old November 14th, 2015, 04:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Could it be that you have security software on your machine or network that prevents some packages from being downloaded? Maybe this helps: http://stackoverflow.com/questions/1...-nuget-package

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:
 
Old March 7th, 2017, 08:44 PM
Registered User
 
Join Date: Mar 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same problem - Solved

I am working in Visual Studio Professional 2015, so yours may say "Library" rather than "NuGet"

Go to Tools -> NuGet Package Manager -> Manage NuGet Packages for solution...

In the top right, make sure "Package source:" is set to All. I am working on a company network, and it was set to only a list of packages specific to my company.

You can add the package to the solution directly from here, without having to use the Package Manager Console.

Hope it helps!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install WebMatrix wjprice BOOK: Beginning ASP.NET Web Pages with WebMatrix 1 January 4th, 2012 09:59 AM
Unable to install sql server 2008. rupen SQL Server 2008 0 January 7th, 2010 07:20 AM
Unable to install SQL Server 2005 muellmk SQL Server 2005 0 October 8th, 2007 07:33 AM





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