Unable to upgrade to Ef 6.0. Unable to find a version of 'Breeze.Server.WebApi.EF' that is compatible - entity-framework

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

Related

Error Installing automapper -version:4.1.0

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.

VS2013 Cant Install almost anything through NUget (specially requiring entityframework)

I can't install Entity Framework via Nuget on Visual Studio 2013 Ultimate.
I've tried:
reinstalling it
update it (vs2013) patch5
.net frameworks fixer (FixDotNet2017.cab)
other nugets versions
EFTools6.1.3ForVS2013.msi
msxml6_SDK.msi
repairing w/ MSXML
dotNetFx45_Full_setup.exe
I've wasted a whole week on this - but in the same PC another VS 2017 works fine..
Here are the outputs:
ENTITYFRAMEWORK Install failed. Rolling back...
Installing 'EntityFramework 6.1.3'.
Successfully installed 'EntityFramework 6.1.3'.
Adding 'EntityFramework 6.1.3' to WebApplication5.
Uninstalling 'EntityFramework 6.1.3'.
Successfully uninstalled 'EntityFramework 6.1.3'.
*Install failed. Rolling back...*
Install-Package : Failed to add reference to 'EntityFramework'.
At line:1 char:17
+ Install-Package <<<< EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
What I really need to DO is add a new item to my solution , an ADO.NET ENTITY DATA MODEL
and the error follows like:
library not registered Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

How to install MVVMLight through nuget

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

Source Unreachable issue in installing Entity Framework in Visual Studio 2013

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

AutofacContrib.DynamicProxy2 NuGet package

I'm having problems getting AutofactContrib.DynamicProxy2 installed.
When trying to get the AutofactContrib.DynamicProxy2 NuGet package, I get the following error:
PM> install-package AutofacContrib.DynamicProxy2
Attempting to resolve dependency 'Autofac (≥ 2.4.5.724)'.
Attempting to resolve dependency 'Castle.Core (≥ 2.5.2)'.
Attempting to resolve dependency 'Castle.DynamicProxy (≥ 2.2.0)'.
Attempting to resolve dependency 'Castle.Core (= 1.2.0)'.
Install-Package : Updating 'Castle.Core 2.5.2' to 'Castle.Core 1.2.0' failed. Unable to find a version of 'AutofacContrib.DynamicProxy2' that is compatible with 'Castle.Core 1.2.0'. At line:1 char:16
+ install-package <<<< AutofacContrib.DynamicProxy2
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
As far as I understand, in Castle V.3 there's no longer a DynamicProxy.dll but it's contained in Castle.Core.dll.
I guess that I have to install a previous version of Castle.Core.dll, but for some reason the package has a dependency on 'Castle.Core (≥ 2.5.2)', so even if I manually install Castle.Core V. 1.2, I still get this error.
Anyone has a solution for this?
Try with -ignoredependencies, It works with targetFramework="net40".
PM> install-package autofaccontrib.dynamicproxy2 -ignoredependencies
You can install Dependencies separately
Autofac(≥ 2.4.5.724)
Castle.Core(≥ 2.5.2)
Castle.DynamicProxy(≥ 2.2.0)
Result:
PM> install-package autofaccontrib.dynamicproxy2 -ignoredependencies
Successfully installed 'AutofacContrib.DynamicProxy2 2.4.5.724'.
Successfully added 'AutofacContrib.DynamicProxy2 2.4.5.724' to StackOverflow2.
PM>