I am trying to upgrade my MVC3 web app to MVC 5 since I lost intellisense in VS2013
I am trying to upgrade from ASP.NET MVC 3 to 5 using the NuGet Package Manager.
PM> Install-Package Microsoft.AspNet.Mvc -Version 5.1.1
But this command fails. Does anyone has the steps to converting MVC 3 to MVC 5?
I tried to follow this but it doesn't have all the steps:
http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2
Thanks for helping.
Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.1.2'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For
more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.AspNet.Mvc -Version 5.1.1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Related
I am trying to install "Microsoft.ProjectOxford.SpeechRecognition-x64" using Nuget on Visual studio. I got the following error. What does it mean? Thanks
PM> Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64
Install-Package : Solution is not saved. Please save your solution before managing NuGet packages. At line:1 char:1
+ Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetUnsavedSolution,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
The NuGet team deprecated solution level packages in NuGet 3.0. So install the NuGet package to solution without any project is not supported. You need create a project, then add the package to the project.
When installing Nuget package of sinch I got the un-supported error on VS2010 and Framework 4.0
PM> Install-Package Sinch.SMS
Installing 'Sinch.SMS 1.1.0.0'.
Successfully installed 'Sinch.SMS 1.1.0.0'.
Adding 'Sinch.SMS 1.1.0.0' to DMMService.
Uninstalling 'Sinch.SMS 1.1.0.0'.
Successfully uninstalled 'Sinch.SMS 1.1.0.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'Sinch.SMS 1.1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package doe
s not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<< Sinch.SMS
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
Sorry, Right now we only support 4.5
I have migrated my project into Visual Studio 2013 from 2010. I am trying to install Microsoft.AspNet.WebPages.WebData to fix some erors I am getting. When I try install from the Nuget console I get this error:
Install-Package : Could not install package
'Microsoft.AspNet.WebPages.WebData 3.2.2'. You are trying to install
this package into a project that targets '.NETFramework,Version=v4.0',
but the package does not contain any assembly references or content
files that are compatible with that framework. For more information,
contact the package author.
At line:1 char:16
+ Install-Package <<<< Microsoft.AspNet.WebPages.WebData
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Anyone know how I can fix this?
Hi I'm trying to download the Google Calendar v3 API from nuget. When I type "Install-Package Google.Apis.Calendar.v3 -Pre" into the Package Manager console in Visual Studio 2010, I get this error:
PM> Install-Package Google.Apis.Calendar.v3 -Pre
Install-Package : A parameter cannot be found that matches parameter name 'Pre'.
At line:1 char:45
+ Install-Package Google.Apis.Calendar.v3 -Pre <<<<
+ CategoryInfo : InvalidArgument: (:) [Install-Package], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,NuGet.PowerShell.Commands.InstallPackageCommand
Not Sure where I went wrong. I'm pretty sure that is exactly what they tell you to do on NuGet's website. Any help would be appreciated.
Thanks.
could you please try with the latest NuGet from http://docs.nuget.org/docs/start-here/installing-nuget? it does not repro for me.
also, which project type are you trying to install the package to?
I tried intalling Mvc Mailer by entering the command "Install-Package MvcMailer" in the Package Manager Console, but I'm getting the following error message:
Successfully installed 'MvcMailer 1.1'.
Successfully added 'MvcMailer 1.1' to MatchesHorsConcours.
Install-Package : The term 'Set-DefaultScaffolder' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name
, or if a path was included, verify that the path is correct and try again.
At line:1 char:16
+ Install-Package <<<< MvcMailer
+ CategoryInfo : NotSpecified: (:) [Install-Package], CommandNotFoundException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Well, in fact, it istalls MvcMailer, but something goes wrong during the configuration I guess.
I already have these two packages installed:
T4Scaffolding 1.0.2
MvcScaffolding 1.0.2
I've also been using MVC mailer and encountered the same error.
I've fixed the issue by using the latest packages of T4Scaffolding and EntityFramework.
Go to your project (in your case MatchesHorsConcours) and start the PackageManager console (MatchesHorsConcours should be selected in the Default project dropdown of the PackageManager console).
Remove MVC mailer and its dependencies:
uninstall-package mvcmailer -RemoveDependencies
Install the latest EntityFramework package
install-package EntityFramework
Install the latest T4Scaffolding package
install-package T4Scaffolding
Now install MVCMailer
install-package MvcMailer
This should do the trick - let me know if you still encounter problems after doing this.