Click here to Skip to main content
15,881,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am trying to update my visual studio with the latest released Nugget in the Package Manager console but I am getting this error:
Install-Package EntityFramework -Version 6.0.0-alpha2 -Pre
Install-Package : Cannot bind parameter 'Version'. Cannot convert value "6.0.0-alpha2" to type "System.Version". Error: "Input string was 
not in a correct format."
At line:1 char:42
+ Install-Package EntityFramework -Version 6.0.0-alpha2 -Pre
+                                          ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Package], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,NuGet.PowerShell.Commands.InstallPackageCommand

I am using MS VS 2010 and  Microsoft.NET Framework Version 4.5.50709 SP1 Rel and I have win 8 installed on my PC
and the reason I am trying to install is becuase I want to reference a namespace in the Global.asax file which does not found the BundleConfig in the namespace
and when I am trying to reference it from System.Web.Optimization it giving an error.

this is the code I a using in the Global.asax:

namespace WingtipToys
{
    public class Global : System.Web.HttpApplication
    {

        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            BundleConfig.RegisterBundles(BundleTable.Bundles); at this line of code

        }
Please can someone help fixing this.
Posted

1 solution

Have you tried it without the -alpha2 part? It doesn't look like a valid version otherwise.

Good luck!
 
Share this answer
 
Comments
El Dev 11-Mar-13 9:15am    
Yes I have tried all the version using this link http://www.nuget.org/packages/EntityFramework/
E.F. Nijboer 11-Mar-13 9:32am    
How about simply: Install-Package EntityFramework -Pre
El Dev 12-Mar-13 2:48am    
it is not also working...Is a problem of my vs 2010?

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