Can't install umbraco using nuget "operation failed" - visual-studio-2012

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

Related

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?

Nuget update-package error with Microsoft.ApplicationInsights.JavaScript

Wether I start a new project and add Azure Application Insights or add Insights to an existing project, it seems to break my Nuget updates.
Attempting to resolve dependencies for multiple packages
update-package : Unable to find package 'Microsoft.ApplicationInsights.JavaScript'. Existing packages must be restored before
performing an install or update.
At line:1 char:1
+ update-package
+ ~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Update-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
I can no longer just type 'update-package' to update all my packages.
Using VS2015
How do I fix this?
Do you have the "Include Prerelease" option checked in the NuGet package manager (or specify -IncludePrerelease in the Update-Package command in the Package Manager Console)?
I believe the JavaScript package is only pre-release at this moment.

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