I need to add MVVM Light toolkit to an existing project.
I run nuget command.. My project is in 4.5 Framework. I got this error
Attempting to resolve dependency 'MvvmLightLibs (≥ 5.0.2.0)'.
Install-Package : 'MvvmLightLibs' already has a dependency defined for 'CommonServiceLocator'.
At line:1 char:16
+ Install-Package <<<< MvvmLight
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPa
ckageCommand
I installed through extensions and updates and it got installed but when i tried to create a new mvvm project using visual studion wizard same this dependency error arises.
How to resolve this..
Install the latest version of NuGet
i agrees with Sievajet. solved the same problem by upgrading to the latest version of NuGet
Related
I am using visual studio 2013
Package Manager Console Host Version 2.8.60610.756
I am trying to install antomapper version 4.1 using this command
install-package automapper -version:4.1.0
but I am getting this error message:
The source at nuget.org [https://www.nuget.org/api/v2/] is
unreachable. Falling back to NuGet Local Cache at
C:\Users[Username]\AppData\Local\NuGet\Cache Install-Package : Unable
to find version '4.1.0' of package 'automapper'. At line:1 char:16
+ install-package <<<< automapper -version:4.1.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Please help me resolve this issue
thanks in advance
As per the error message you quoted:
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable.
Your computer cannot reach nuget. Either your network connectivity is down, or nuget is having a temporary outage.
I am using lucene-net version 3.0.3, and I want binary filed store. Binary filed requires lucene-net version 4, but I cannot install this version.
This is what I have tried and the error I received:
PM> Install-Package Lucene.Net -Version 4.8.0.648-beta
Install-Package:
Some NuGet packages are missing from the solution. The packages need
to be restored in order to build the dependency graph. Restore the
packages before performing any operations.
At line:1 char:1
+ Install-Package Lucene.Net -Version 4.8.0.648-beta
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetMissingPackages,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
As said in this blogpost of Itamar Syn-Hershko, Lucene.NET version 4.8 is not yet available with NuGet.
But as described, you can get it through the private feed of MyGet though. To do this, first add a new package source in the NuGet Package Manager settings, with Source: https://www.myget.org/F/lucene-net/.
After you've done this, you should find the new version with the NuGet Package Manager (don't forget to set the correct Package source).
I'm trying to add the Caliburn.Micro 3.0alpha NuGet package to an existing Xamarin.Forms project. I first seems adding the package via NuGet is successful, but at the end it rolls back, and I get the error message that a newer package of Xamarin.Forms is already installed.
How can I force Caliburn.Micro to ignore this error and use the installed version of Xamarin.Forms ?
My NuGet output :
PM> Install-Package Caliburn.Micro.Xamarin.Forms -Pre
Attempting to resolve dependency 'Caliburn.Micro.Core (= 3.0.0-alpha)'.
Attempting to resolve dependency 'Xamarin.Forms (= 1.4.2.6355)'.
Installing 'Caliburn.Micro.Core 3.0.0-alpha'.
Successfully installed 'Caliburn.Micro.Core 3.0.0-alpha'.
Installing 'Xamarin.Forms 1.4.2.6355'.
Successfully installed 'Xamarin.Forms 1.4.2.6355'.
Installing 'Caliburn.Micro.Xamarin.Forms 3.0.0-alpha'.
Successfully installed 'Caliburn.Micro.Xamarin.Forms 3.0.0-alpha'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'Xamarin.Forms'.At line:1 char:2
+ Install-Package Caliburn.Micro.Xamarin.Forms -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
You cannot force Caliburn.Micro.Core 3.0.0-alpha to use any other version of Xamarin.Forms other than 1.4.2.6355.
The Caliburn.Micro.Core 3.0.0-alpha NuGet package has a dependency which restricts to a single Xamarin.Forms version.
<dependency id="Xamarin.Forms" version="[1.4.2.6355]" />
The only workarounds are:
Modify the Caliburn.Micro.Core NuGet package to relax the dependency.
Do not use NuGet.
Caliburn.Micro.Core might not work with a different version of Xamarin.Forms even if the above workarounds are tried.
I am having issues with installing Entity Framework in Visual Studio 2013. I am having following error.
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local >Cache at C:\Users\9040\AppData\Local\NuGet\Cache
Install-Package : Unable to read package from path 'EntityFramework.6.1.2.nupkg'.
At line:1 char:16
+ install-package <<<< EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidDataException
+ FullyQualifiedErrorId : >NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Please suggest. Thanks
Ok i got it solved. Thought i should share it. I don't know why but Package console does not pick source path from Package Manager Settings. I explicitly had to state the path with Install command and it worked. This is the command
Install-Package EntityFramework -Source https://www.nuget.org/api/v2/
Thanks
I'm issuing this command in the Package Manager Console..
PM> install-package EntityFramework -version 6.0.0
and it is giving me the error that it cannot find a version of the Breeze.Server.WebApi.EF package that is compatible (Shown at bottom). Here are the breeze packages I currently have installed:
Does anyone know what might be happening here?
Full error...
Install-Package : Updating 'EntityFramework 5.0.0' to 'EntityFramework 6.0.0' failed. Unable to find a version o
f 'Breeze.Server.WebApi.EF' that is compatible with 'EntityFramework 6.0.0'.
At line:1 char:16
+ install-package <<<< EntityFramework -version 6.0.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Breeze.Server.WebApi.EF has a requirement of EF < 6.0. You'll need to remove that and use the new packages listed in the Nuget Documentation.
ie. Remove Breeze.WebApi and add Breeze.WebApi2