[英]Error Installing Microsoft.EntityFrameworkCore v1.1.4
I pulled the web app that I'm developing on my local machine from our git, it works perfectly on our development server. 我从git中提取了要在本地计算机上开发的Web应用程序,它在开发服务器上运行良好。 However, when I try to access it on my local machine I get: 但是,当我尝试在本地计算机上访问它时,会得到:
Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=1.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. 无法加载文件或程序集“ Microsoft.EntityFrameworkCore,版本= 1..1.4.0,Culture = neutral,PublicKeyToken = adb9793829ddae60”或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。
When I went to the nuget manager in Visual Studio 2015 (My boss is adamant about us staying on Visual Studio 2015), I searched for Microsoft.EntityFrameWorkCore
, which I found, changed it to 1.1.4 and then I get the error: 当我去Visual Studio 2015中的nuget管理器时(我的老板坚决要求我们继续使用Visual Studio 2015),我搜索了Microsoft.EntityFrameWorkCore
,将其更改为1.1.4,然后出现错误:
Could not install package 'Microsoft.EntityFrameworkCore 1.1.4'. 无法安装软件包“ Microsoft.EntityFrameworkCore 1.1.4”。 You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. 您正在尝试将此软件包安装到以'.NETFramework,Version = v4.5'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the pack author. 有关更多信息,请与软件包作者联系。
Here's the output for when it was downloading: 这是下载时的输出:
Attempting to gather dependency information for package 'Microsoft.EntityFrameworkCore.1.1.4' with respect to project 'SkipGenieService', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'Microsoft.EntityFrameworkCore.1.1.4' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.EntityFrameworkCore.1.1.4'
Resolved actions to install package 'Microsoft.EntityFrameworkCore.1.1.4'
Attempting to gather dependency information for package 'Microsoft.EntityFrameworkCore.1.1.4' with respect to project 'PeopleSearch', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'Microsoft.EntityFrameworkCore.1.1.4' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.EntityFrameworkCore.1.1.4'
Resolved actions to install package 'Microsoft.EntityFrameworkCore.1.1.4'
Install failed. Rolling back...
Package 'Microsoft.EntityFrameworkCore.1.1.4' does not exist in project 'SkipGenieService'
Package 'Microsoft.EntityFrameworkCore.1.1.4' does not exist in folder 'C:\Users\<username>\Source\Repos\<project>\packages'
Could not install package 'Microsoft.EntityFrameworkCore 1.1.4'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
========== Finished ==========
Any suggestions? 有什么建议么? I have both of the projects to .Net Framework Version v4.5 but for some reason the download manager doesn't believe it. 我有.Net Framework版本v4.5的两个项目,但由于某些原因,下载管理器不相信。
Microsoft.EntityFrameworkCore Version 1.1.4 has the following dependencies. Microsoft.EntityFrameworkCore版本1.1.4具有以下依赖关系。 Please check. 请检查。
NETFramework 4.5.1 NET框架4.5.1
.NETStandard 1.3 .NETStandard 1.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.