error installing Entity Framework Core SqlServer on VS 2017

时光怂恿深爱的人放手 提交于 2019-12-25 12:53:27

问题


Does anyone have any ideas about how to fix this?

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.

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

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 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'.

Thanks in advance for any help on this. Randy


回答1:


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/



来源:https://stackoverflow.com/questions/42797569/error-installing-entity-framework-core-sqlserver-on-vs-2017

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!