Running the Nuget Package Manager (client version 3.5.0.1996) for VS 2015 Community Edition to install Npgsql 2.3.4, I get the following error:
Failed to add reference. The package 'Npgsql' tried to add a framework reference to 'System.Collections' which was not
found in the GAC. This is possibly a bug in the package.
Is it really a bug in the package, or something having to do with my edition of VS?
This has been verified and submitted as an issue: https://github.com/npgsql/npgsql/issues/1604. For now either use VS2017 or Npgsql 3.2.3, we'll fix this for 3.2.5.
This is fixed in 3.2.4.1 available on Nuget.
Related
When I first open the solution in VS2017 and trying to build a project, I get many errors and warnings in the Error list window. The project I'm trying to build is from Github (https://github.com/KirillOsenkov/SourceBrowser). Visual studio is throwing the below error. The solution has .net core 2.1 and .net framework 4.7.2. Both are already installed in my machine too.
I'm not sure what fixed it for me, but I installed visual studio 2015 update 3 on my machine and also updated VS2019 and VS2017 and then built the solution again. Now it builds successfully in both VS2017 and VS2019. It looks like some other package or library that supports this also installed during the update process.
I am trying to add a nuget package (PiranhaCMS) to my VS2012/NET45 project. The nuget package itself depends on AutoMapper. When I try to install I get the message
'AutoMapper' already has a dependency defined for 'NETStandard.Library'
I'm confused because Piranha itself depends on NET45 not NETStandard. Research indicates I might need a later version of nuget. Having invoked nuget update -self on the nuget.exe in the .nuget folder under the solution, I tried again but got the same message.
What's further confusing me is nuget.exe is on 4.2.0.4168 but VS2012's Help, About dialog says the NuGet Package Manager is on 2.8.60318.667.
What I need to know is, can I get this package installed into this VS2012 solution? If so, how? If I can't do I need to move to VS017 so I can use a later version of NuGet which will install the package for me, even if the solution continues to target NET45?
can I get this package installed into this VS2012 solution? If so, how?
We could not get this package installed into this Visual Studio 2012. That because full NetStandard and NetCoreApp support for VS2013 (NuGet version is 2.12) and the latest version for Visual Studio 2012 is 2.8.6. so we will get that error when we install the package "PiranhaCMS" by Visual Studio 2012.
You can refer to the NuGet release note for 2.12 for detail info.
If I can't do I need to move to VS017 so I can use a later version of
NuGet which will install the package for me, even if the solution
continues to target NET45?
Yes, you can install that package to the solution continues to target NET45 on Visual Studio 2017.
I have a mixed environment where some developers are working on Visual Studio 2013, and others are working on 2015. Everything worked fine until we updated a referenced NuGet package from Visual Studio 2015.
Now, when trying to restore the NuGet packages from Visual Studio 2013, I see the following error:
NuGet Package restore failed for project Foo: The 'System.Linq 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.8.60723.765'..
Apparently, there is no NuGet version 3.x for Visual Studio 2013.
Is there a solution to continue working with both Visual Studio 2013 and 2015?
Sigh, a team that can't make up their mind about what tools they use, what could possibly go wrong? Well this. And the other rather nasty problem, that package is meant for projects that target CoreCLR and the Win10 flavor of Universal apps. You cannot create nor build such a project on VS2013. So trying to solve the Nuget version problem doesn't buy you anything.
You guys need to get together and hammer-out what projects you are going to work on. If CoreCLR is what everybody wants to do, and do ask why, then everybody must update to VS2015.
As Hans Passant noted in his reply, there is no need for NuGet 3.0 on projects which are only targetting the vanilla .NET 4.5 framework (and that's what Visual Studio 2013 was meant to target in our case).
It was the addition of an updated NuGet package, specifically System.Collections.Immutable 1.1.37, which introduced a dependency on .NETPlatform,Version=v5.0, which in turn triggered the accidental dependency on NuGet 3.0.
Returning to version 1.1.36 of that package solved the issue.
when i am installing Newtonsoft.json using Nugget package manager then i am getting error like this
i am having .net framework version 4.5.50709
Update your nuget manager to 2.6 and restart visual studio.
I want to add a library package reference to NUnit so that I can do some unit testing. When I try to download the package and add the reference, I get this error:
The schema version of 'NUnit' is incompatible with version 1.2.20325.9034 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
So then I go to this URL and download the file NuGet.Tools.vsix. When I double click it, I get the error: "Invalid command line arguments." So I then run Web Platform Installer 3.0, but I can't figure out how to upgrade NuGet from there either. Finally, I was able to install version 1.6.2 of NuGet.Core from inside of Visual Web Developer via "Add Library Package Reference" under the Project menu. However, when I try to install NUnit the same way, it still gives me the error that it is incompatible with version 1.2... of NuGet, even though it appears that Nuget.Core is now upgraded to version 1.6.2!
Any idea what is going on?
I am using Visual Web Developer 2010 Express on Windows 7. Also, I am using wpilauncher_3_10.exe.
I followed this web site Link
In order to unistalling nuget follow Visual Studio 2010 - Uninstall NuGet
And you can download and install nuget from here download Nuget