I've been suffering with the installation of the package
mentioned in the title in Visual Studio 2019.
My goal is to succesfully develop a Xamarin Android application.
I've tried NuGet Package Manager and even the associated consol.
However I do not progress regarding the issue.
I receive the following error message: Error NU1101 Unable to find package System.Numerics.Vectors. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages
Does anyone know how to resolve the error?
I am trying to install 'WindowsAzure.Storage 8.0.1' in visual studio 2012, but getting the error
package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'.
on running command "Install-Package NuGet.Client"
Attempting to resolve dependency 'NuGet.Versioning (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Packaging (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Common (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Packaging.Core (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Packaging.Core.Types (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Frameworks (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.Repositories (≥ 3.5.0)'.
Attempting to resolve dependency 'NuGet.RuntimeModel (≥ 3.5.0)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'.
Attempting to resolve dependency 'NuGet.ContentModel (≥ 3.5.0)'.
'NuGet.Client 3.5.0' already installed.
But still I am getting the error.
The 'WindowsAzure.Storage 8.0.1' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'.
Update your NuGet Package Manager extension. Go to Tools->Extensions and Updates and select Updates->Visual Studio Gallery. Update the NuGet Package Manager extension. Then try to install the package after Visual Studio gets restarted.
NuGet 2.12 only supports Visual Studio 2013 and later. If you're on Visual Studio 2012 you're out of luck.
I struggled with this issue in Visual Studio 2010 when I was trying to add NewtonSoft.Json nuget package into my project. When I try to run the latest version of the nuget package from nuget package manager console:
PM> Install-Package Newtonsoft.Json
It results in the same error as mentioned by OP:
package requires NuGet client version '2.12' or above, but the current
NuGet version is '2.8.60318.667'.
So I thought I would update the NuGet extension in Visual Studio first to latest version. But when I went into Tools -> Extensions and Updates window the Updates tab wasn't showing any update for Nuget extension. So it seems NuGet client version 2.12 isn't available/supported in Visual Studio 2010 at all. I was running out of options now.
So finally, I tried to install a specific lower version (6.0.3) of Newtonsoft.Json package deliberately this way:
PM> Install-Package Newtonsoft.Json {Your Project Name} 6.0.3
This worked successfully.
Latest version of this package at the time of writing this post is 10.0.3 instead.
So, it might be the case that newer version of a nuget package is compatible with only latest version of nuget package manager. So sometimes explicitly installing a lower version of the package might help you. Older version of a nuget package will of course be compatible with older nuget extension in Visual Studio if it is not up-to-date.
The only caveat in this solution is that the functionalities present in lower version of the nuget package you target should suffice your current project needs. Good luck!
Note: Although I've elaborated this solution w.r.t. Visual Studio 2010 but you can try this work around for any Visual Studio version for that matter.
I find out the solution for this problem.
Basically you have a .nuget folder at solution level, that folder contains a nuget.exe file that probably is old. A lot of packages might need new version of that file.
Open this link: https://www.nuget.org/downloads
Download latest version of nuget.exe
Replace your .nuget/nuget.exe with this new version.
And try again, I'm confident it will work.
try
nuget update -self
my result:
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 2.8.7.
Updating NuGet.exe to 5.3.1.
Update successful.
This fix worked for me(I am using vs 2013, not sure if it will work for the rest), Go to Tools --> Extensions and Updates, then look for NuGet package manager for visual studio 2013, uninstall it. In the left pane select online which will take you to visual studio gallery, in the right pane search for NuGet package manager for visual studio 2013, it will bring you the right version to install. Install that and you are good to go, hope this sorts someone out.
Install-Package Newtonsoft.Json -Version 6.0.3
I got the same issue and I just clicked on "Restore NuGet package for this solution". In my case this solved the problem. Hope it will help.
I solved this problem, and my steps are as below:
1.Do what as "Mathivanan KP" said;
2.Delete the folder ".nuget", which is below your solution folder;
3.Rebuild your solution;
4.Back to your solution folder, and press "Ctrl + Z", then rebuild your solution again.
If the problem still there, i think you should clone the code from version manager to a new folder, and do the steps as before.
Hope it helpful to you.
You are updating the wrong package. Update your Nuget Package Manager and the error will be gone.
Update-Package NuGet.VisualStudio
https://www.nuget.org/packages/NuGet.VisualStudio
I try everything but nothing helps me. Than I change Visual Studio version from 2012 to 2015 everything is working Like a charm now.
I have reinstalled my windows and I had an old project in Visual Studio MVC 5.
Now when I try to open it I get the following error:
enter image description here
You are missing a .NET project package which's name is CodeAnalysis.Csharp.
Try to install it through NuGet console package manager. Write the following command:
Install-Package Microsoft.CodeAnalysis.CSharp
If you already have that package, but older one, you might wanna do this:
Update-Package Microsoft.CodeAnalysis.CSharp
How to arrive to the console package manager?
On visual studio click:
Tools>NuGet Package Manager>Package Manager Console.
Hope it helps.
I have Visual Studio 2012 Express for Web.
My Steps
-Create a New ASP .NET MVC 4 application
-choose basic template
-go to Package Manager Console
-try to install WebActivator
PM> Install-Package WebActivator
and i get the following error
How i can resolve this and install WebActivator package?
In my case, I could not install any package and got a similar error. The issue was solved as I unchecked the "Microsoft and .NET" under "Machine-wide package source":
I hope this can be help someone.
So easy
https://www.nuget.org/packages/WebActivator
Need point version of webActivator!!!
PM> Install-Package WebActivator -Version 1.5.3
I got a similar problem with another package in Visual Studio 2013, I cleared the NuGet package cache with the option "Clear Package Cache" and it works now.
Change source according to visual studio version
NuGet feed v3 (VS 2015 / NuGet v3.x): https://api.nuget.org/v3/index.json
NuGet feed v2 (VS 2013 and earlier / NuGet 2.x): https://www.nuget.org/api/v2
I just ran into this myself. The reference to WebActivatorEx didn't work. You'll have to do it manually. The file is in the packages directory.
I've downloaded and installed from here...
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13480
As suggested here..
Getting started with Exchange Web Services 2010
I try to create a new project in Visual Studio and do this...
using Microsoft.Exchange.Webservices but Exchange is not defined.
I've tried finding it in the Add Reference... dialog with no luck...
You can find Microsoft.Exchange.Webservices.dll (Version 1.2) in the program files path.
%ProgramFiles%\Microsoft\Exchange\Web Services\1.2\
It is a NuGet package now. I had the NuGet package as a reference, but I was still getting the yellow warning symbol on the reference.
I just had to right click my project, select Manage NuGet Packages...
Then I uninstalled and reinstalled the same version. Shrug.
If you don't have the NuGet package, search for Microsoft.Exchange in the manager.