在VS8的Windows 8上没有通过Nuget安装EF5 [英] EF5 not getting installed via Nuget on Windows 8 with VS11

查看:87
本文介绍了在VS8的Windows 8上没有通过Nuget安装EF5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是我正在做的事情。我有Windows 8 Consumer Preview和VS11。我正在开发Metro风格应用程序。我有3层(数据,BL和演示文稿)。我正在尝试在数据层中安装EF5 beta 1.


这是我正在做的和我得到的错误:



PM> Install-Package EntityFramework -includeprerelease


您正在从Microsoft下载EntityFramework,其许可协议可从http://go.microsoft.com/fwlink/?LinkId=242870获取。检查软件包是否有其他依赖关系,这可能与他们自己的许可协议一起提供。您使用
的包和依赖项构成您接受其许可协议。如果您不接受许可协议,请从设备中删除相关组件。


已成功安装'EntityFramework 5.0.0-beta1'。


成功卸载'EntityFramework 5.0.0-beta1'。



安装失败。回滚...



安装包:无法安装包'EntityFramework 5.0的3.0β1' 的。您正在尝试将此包


安装到以".NETCore,Version = v4.5"为目标的项目中,但该包不包含$ b的任何程序集引用$ b


与该框架兼容。有关详细信息,请与软件包作者联系。


在行:1 char:1


+ Install-Package EntityFramework -includeprerelease


+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~


    + CategoryInfo          :NotSpecified :( :) [Install-Package],InvalidOperationException


    + FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand


解决方案


似乎只是不支持:"但是包不包含任何与该框架兼容的程序集引用"。您是否尝试过查看.NET 4.5中包含哪个版本?您需要什么样的EF 5功能?


您也可以尝试
http://social.msdn.microsoft.com/Forums/en-US/category/windowsapps
 以查看其他Windows 8开发人员是否尝试使用Windows 8中的EF 5。 / p>


Here is what I'm doing. I have Windows 8 Consumer Preview and VS11. I am developing a Metro Style App. I have 3 layers (Data, BL, and Presentation). I'm trying to install EF5 beta 1 in the Data Layer.

Here's what I'm doing and the error I'm getting:

PM> Install-Package EntityFramework -includeprerelease

You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=242870. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.

Successfully installed 'EntityFramework 5.0.0-beta1'.

Successfully uninstalled 'EntityFramework 5.0.0-beta1'.

Install failed. Rolling back...

Install-Package : Could not install package 'EntityFramework 5.0.0-beta1'. You are trying to install this package

into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that

are compatible with that framework. For more information, contact the package author.

At line:1 char:1

+ Install-Package EntityFramework -includeprerelease

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException

    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

解决方案

Hi,

It seems to be just not supported : "but the package does not contain any assembly references that are compatible with that framework". Have you tried to see which version is included with .NET 4.5 ? What is the EF 5 feature you need ?

You could also try http://social.msdn.microsoft.com/Forums/en-US/category/windowsapps to see if others Windows 8 developpers tried to use EF 5 from Windows 8.


这篇关于在VS8的Windows 8上没有通过Nuget安装EF5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆