在VS 2017上安装Entity Framework Core SqlServer时出错 [英] error installing Entity Framework Core SqlServer on VS 2017

查看:83
本文介绍了在VS 2017上安装Entity Framework Core SqlServer时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对如何解决此问题有任何想法吗?

Does anyone have any ideas about how to fix this?

我在VS 2015上尝试了各种不同的方式和版本,最近才升级到VS 2017年,但仍然存在相同的问题。

I have tried it various different ways and version on VS 2015, and then I just recently upgraded to VS 2017, but still have same issue.

我正在安装Entity Framework Core,并想连接到SqlServer。

I'm in the process of installing Entity Framework Core, and wanted to connect to a SqlServer.

通过Pack Man Console或NuGet界面安装软件包时,出现以下错误...。

When I install the package via Pack Man Console or via NuGet interface, I get the following error....

我有以下错误当前已安装。。

I have the following installed currently..

System.Threading.Thread 4.3.0提供了编译时参考程序集用于UAP上的System.Threading.Thread,版本= v10.0,但没有与win10-arm兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-arm)不兼容。
System.Threading.Thread 4.3.0为UAP,Version = v10.0上的System.Threading.Thread提供了编译时参考程序集,但没有与win10-arm-aot兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-arm-aot)不兼容。
System.Threading.Thread 4.3.0为UAP,Version = v10.0上的System.Threading.Thread提供了编译时参考程序集,但没有与win10-x64兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-x64)不兼容。
System.Threading.Thread 4.3.0为UAP,Version = v10.0上的System.Threading.Thread提供了编译时参考程序集,但没有与win10-x64-aot兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-x64-aot)不兼容。
System.Threading.Thread 4.3.0为UAP,Version = v10.0上的System.Threading.Thread提供了编译时参考程序集,但没有与win10-x86兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-x86)不兼容。
System.Threading.Thread 4.3.0为UAP,Version = v10.0上的System.Threading.Thread提供了编译时参考程序集,但没有与win10-x86-aot兼容的运行时程序集。
一个或多个软件包与UAP,Version = v10.0(win10-x86-aot)不兼容。
打包还原失败。回滚 RapidDeploy的软件包更改。

System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm. One or more packages are incompatible with UAP,Version=v10.0 (win10-arm). System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot. One or more packages are incompatible with UAP,Version=v10.0 (win10-arm-aot). System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64. One or more packages are incompatible with UAP,Version=v10.0 (win10-x64). System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. One or more packages are incompatible with UAP,Version=v10.0 (win10-x64-aot). System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86. One or more packages are incompatible with UAP,Version=v10.0 (win10-x86). System.Threading.Thread 4.3.0 provides a compile-time reference assembly for System.Threading.Thread on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot. One or more packages are incompatible with UAP,Version=v10.0 (win10-x86-aot). Package restore failed. Rolling back package changes for 'RapidDeploy'.

在此先感谢您的帮助。
Randy

Thanks in advance for any help on this. Randy

推荐答案

您不能在UWP应用程序中使用SQL Server提供程序,而必须使用SQLite提供程序。 https://docs.microsoft.com/zh-CN / ef / core / providers / sql-server /

You cannot use the SQL Server provider with UWP applications, you must use the SQLite provider instead. https://docs.microsoft.com/en-us/ef/core/providers/sql-server/

这篇关于在VS 2017上安装Entity Framework Core SqlServer时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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