Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi There

I want to implement bundling and minification in my project which runs on framework 4.0
when I follow the guidelines specified in their site I am encountering the following error

C#
PM> Install-Package Microsoft.Web.Optimization -Version 1.0.0-beta2 -Pre


C#
Attempting to resolve dependency 'Microsoft.AspNet.Web.Optimization (≥ 1.0.0-beta2)'.
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache at C:\Users\rr156547\AppData\Local\NuGet\Cache
Install-Package : Unable to find version '1.0.0-beta2' of package 'Microsoft.Web.Optimization'.
At line:1 char:16
+ Install-Package <<<<  Microsoft.Web.Optimization -Version 1.0.0-beta2 -Pre
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand


is there any other work around to go about this ? or is there any dll available for this?

Thanks in advance
Posted
Updated 28-Apr-14 6:35am
v3

1 solution

Is there a reason you are trying to install such an old version and a beta version at that?

You really should just use the following to install the latest version:

PM> Install-Package Microsoft.AspNet.Web.Optimization


It appears you might have some connection issue with your network. What you can do is create a local Nuget repository as described here.

After that you can download the Nuget site and host it on the local repository you have made.
 
Share this answer
 
v2
Comments
Shashwath7 29-Apr-14 2:26am    
Hi <br>
 <br>
I have tried this (PM> Install-Package Microsoft.AspNet.Web.Optimization) as well but ending up with the same error. Is there any work around for this?
AnvilRanger 2-May-14 14:33pm    
Check out the updated solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900