p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4.5 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=710)
-   -   Unable to install Modernizr ( pg 83) (http://p2p.wrox.com/showthread.php?t=91521)

desperadoom November 20th, 2013 02:31 AM

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.

Imar November 20th, 2013 11:24 AM

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

Drogil November 12th, 2015 09:27 PM

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.

Imar November 14th, 2015 04:49 PM

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

esarg09 March 7th, 2017 08:44 PM

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!


All times are GMT -4. The time now is 10:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.