NuGet: 'StructureMap' already has a dependency defined for 'System.Collections.Concurrent' - visual-studio-2012

Running Visual Studio 2012 and latest version of NuGet, version 3.5.0.1996.
When I try to add StructureMap as a dependency to my class project, I get this error:
PM> install-package structuremap
install-package : 'StructureMap' already has a dependency defined for 'System.Collections.Concurrent'.
At line:1 char:1
+ install-package structuremap
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I have ran nuget update -self, but no dice.

Overcome by adding this line to packages.config in the project directory:
<?xml version="1.0" encoding="utf-8"?>
<packages>
...
<package id="StructureMap" version="4.4.2" targetFramework="net45" />
</packages>
And running this:
nuget update .\packages.config
I'm still in the dark as to why this is happening or which NuGet Visual Studio is actually using.

Related

Can't install umbraco using nuget "operation failed"

i'am new use umbraco cms after i try to install using nuget in visual studio 2012 i get this error
From nuget package
'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
and this from nuget console
Install-Package : 'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
At line:1 char:1
+ Install-Package UmbracoCms
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
how to solve this
I had this yesterday. You need to make sure your NuGet manager in Visual Studio is the latest version. On older versions, you'll get that error. Upgrading the NuGet manager fixed the error for me. See here for some more info: http://issues.umbraco.org/issue/U4-9848

Can't add Microsoft.Azure.Search 3.0.2 nuget package in VS2017

I load up a Visual Studio 2017 and create an empty ASP.NET Core console application. I go to manage nuget packages and "Install-Package Microsoft.Azure.Search" and get the following error:
Install-Package : One or more packages are incompatible with .NETCoreApp,Version=v1.0.
At line:1 char:1
+ Install-Package Microsoft.Azure.Search
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Package restore failed. Rolling back package changes for 'vs2017search'.
At line:1 char:1
+ Install-Package Microsoft.Azure.Search
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
No matter if I try this from .NET Core 1.1 or a NETStandard1.4, 1.5 or 1.6 project I get a similar error.
Adding this package in VS2015 works fine.
Interestingly if I create a ASP.NET Core Console application in VS2015, add the nuget package, upgrade to .NET Core 1.1 and then open it up in VS2017 and do a one way convert it seems to work.
Anyone else experiencing the same or similar and have a solution?

CefSharp.Winforms nuget download issue

I want to use cefsharp in my windows application, so using Package Manager Console' I am trying to downloadCefSharp.Winforms` but I am facing issue while downloading
PM> Install-Package CefSharp.WinForms -Version 37.0.0
Attempting to resolve dependency 'CefSharp.Common (= 37.0.0)'.
The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\amoghs\AppData\Local\NuGet\Cache
Install-Package : Unable to find version '37.0.0' of package 'CefSharp.WinForms'.
At line:1 char:16
+ Install-Package <<<< CefSharp.WinForms -Version 37.0.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I have tried so many times, whats going wrong here?
I also tried from installing package manually..

Install signed ServiceStack assemblies from Package Manager Console

I need ServiceStack signed assemblies to deploy them into GAC.
How can I install signed assemblies from Package Manager Console?
I tried this command but the package is not found:
PM> Install-Package ServiceStack.Signed
Install-Package : Unable to find package 'ServiceStack.Signed'.
At line:1 char:1
+ Install-Package ServiceStack.Signed
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
The Signed packages of ServiceStack are only available in v4, which at the moment is only available for evaluation on MyGet at these instructions, until v4-beta is released.
v4-beta is expected to be available on NuGet at the end of this month (Nov 2013).

add google analityc to metro app

i am try installed google analityc to windows microsoft visual studio 8 for metro app, but i have the problem, when install i have the problem at below
PM> Install-Package w8ga
Successfully installed 'w8ga 2.3'.
Directory '' is not empty. Skipping...
Successfully uninstalled 'w8ga 2.3'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'DT.GoogleAnalytics.Metro'.
At line:1 char:1
+ Install-Package w8ga
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
any body can help me
thanks
iwan
"w8ga 2.3" is targeted for "Windows Store App" and for other project templates, package manager throws error.
You might try with Visual Studio 2012 and Windows Store App to get it working.

Resources