Nuget Install A Package - windows

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.

Related

C# - Xamarin : installing android.support.design package

i'm trying to install "Install-Package Xamarin.Android.Support.Design" into Xamarin Visual Studio 2015, but after it starts downloading, this error occurs
Install-Package : Unable to find package 'Xamarin.Android.Support.Design'
At line:1 char:1
+ Install-Package Xamarin.Android.Support.Design
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
i don't understand any of that, what is wrong?
Ensure that you have a proper NuGet source defined. You can go to Tools -> Options -> NuGet Package Manager -> Package Sources to make sure. i.e.: https://api.nuget.org/v3/index.json
Secondly you should double check that your NuGet version is the latest. Go to Tools -> Extensions and Updates and update if you aren't on the latest version.
Finally you could also try to manually download the package from https://www.nuget.org/packages/Xamarin.Android.Support.Design/ and setup a local NuGet repository to ensure that works. Chances are one of the first bullets should fix this.
Source: https://github.com/NuGet/Home/issues/842

Unable to install nuget packages, they are all unable to be found

After running Install-Package Elmah.MVC, I get the following error in Visual Studio:
Install-Package : Unable to find package 'Elmah.MVC'.
At line:1 char:1
+ Install-Package Elmah.MVC
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
For my Package Source, I've tried both the following, to no avail. I've even tried Install-Package EntityFramework, and same error.
https://www.nuget.org/api/v2/
https://api.nuget.org/v3/index.json
You can try the following solutions to cope with your issue:
Solution # 1
Delete all the folders inside of the packages folder.
Update all packages in Nuget Package Manager.
Solution # 2
type in the package manager console Uninstall-Package EntityFramework -force, then delete the EntityFramework Folder in Package Folder, and then install it again Install-Package EntityFramework
Solution #3
Use the following link : https://docs.nuget.org/Release-Notes/Known-Issues
From the VS command prompt, run the following command:
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"
Solution #4
Clear the package Cache:
Tools->package Manager->Package Manager Settings-> Clear Package Cache
I hope one of the above methods will help you solve the issue.

NuGet unable to add older versions of a dll

I need to install version 3.0.14 of MvvmCross.Plugin.Location since I am way behind the times.
Issued command nuget install mvvmcross.hottuna.plugin.location 3.0.14 and received
install-package : No compatible project(s) found in the active solution.
At line:1 char:1
+ install-package MvvmCross.HotTuna.Plugin.Location 3.0.14
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetNoCompatibleProjects,NuGet.PowerShell.Commands.InstallPackageCommand
Navigated my packages folder and the specific folder in question is there:
MvvmCross.HotTuna.Plugin.Location.3.0.14
and within this folder are the
Cirrious.MvvmCross.Plugins.Location.dll and
Cirrious.MvvmCross.Plugins.Location.WindowsPhone.dll
I can manually add these but would prefer to do so via NuGet. What is the deal here?

Trying to install Microsoft.AspNet.WebPages.WebData from Nuget

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?

Google calendar api download Nuget Error

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?

Resources