简体   繁体   English

安装Microsoft.EntityFrameworkCore v1.1.4时出错

[英]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

  • Microsoft.Extensions.Caching.Memory (>= 1.1.1) Microsoft.Extensions.Caching.Memory(> = 1.1.1)
  • Microsoft.Extensions.DependencyInjection (>= 1.1.0) Microsoft.Extensions.DependencyInjection(> = 1.1.0)
  • Microsoft.Extensions.Logging (>= 1.1.1) Microsoft.Extensions.Logging(> = 1.1.1)
  • NETStandard.Library (>= 1.6.1) NETStandard.Library(> = 1.6.1)
  • Remotion.Linq (>= 2.1.1) Remotion.Linq(> = 2.1.1)
  • System.Collections.Immutable (>= 1.3.0) System.Collections.Immutable(> = 1.3.0)
  • System.Interactive.Async (>= 3.0.0) System.Interactive.Async(> = 3.0.0)

.NETStandard 1.3 .NETStandard 1.3

  • Microsoft.Extensions.Caching.Memory (>= 1.1.1) Microsoft.Extensions.Caching.Memory(> = 1.1.1)
  • Microsoft.Extensions.DependencyInjection (>= 1.1.0) Microsoft.Extensions.DependencyInjection(> = 1.1.0)
  • Microsoft.Extensions.Logging (>= 1.1.1) Microsoft.Extensions.Logging(> = 1.1.1)
  • NETStandard.Library (>= 1.6.1) NETStandard.Library(> = 1.6.1)
  • Remotion.Linq (>= 2.1.1) Remotion.Linq(> = 2.1.1)
  • System.Collections.Immutable (>= 1.3.0) System.Collections.Immutable(> = 1.3.0)
  • System.ComponentModel.Annotations (>= 4.3.0) System.ComponentModel.Annotations(> = 4.3.0)
  • System.Interactive.Async (>= 3.0.0) System.Interactive.Async(> = 3.0.0)
  • System.Linq.Queryable (>= 4.3.0) System.Linq.Queryable(> = 4.3.0)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft.EntityFrameworkCore 中 ExecuteScalar 的对应项 - Counterpart of ExecuteScalar in Microsoft.EntityFrameworkCore 网站无法加载 Microsoft.EntityFrameworkCore - Website cannot load Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore 未在 Web API .NET Core 应用程序中安装和挂起 - Visual Studio 2019 - Microsoft.EntityFrameworkCore not installing and hanging in Web API .NET Core app - Visual Studio 2019 命名空间“Microsoft.EntityFrameworkCore”中不存在“迁移” - 'Migrations' does not exist in the namespace 'Microsoft.EntityFrameworkCore' 如何禁用 Microsoft.EntityFrameworkCore 中的约定? - How to disable conventions in Microsoft.EntityFrameworkCore? 在Azure函数App中无法加载文件或程序集Microsoft.EntityFrameworkCore错误 - Could not load file or assembly Microsoft.EntityFrameworkCore Error in azure functions App 可视代码 - 错误 NU1101:无法找到 package Microsoft.EntityFrameworkCore - Visual Code - error NU1101: Unable to find package Microsoft.EntityFrameworkCore 在.NET Standard项目中找不到Microsoft.EntityFrameworkCore类型 - Type not found Microsoft.EntityFrameworkCore in .NET Standard project 如何为 Microsoft.EntityFrameworkCore 3.1 方法 FirstOrDefaultAsync 创建 xunit 测试? - How to create xunit test for Microsoft.EntityFrameworkCore 3.1 method FirstOrDefaultAsync? 无法从 Nuget 包管理器安装 Microsoft.EntityFrameworkCore - Not able to install Microsoft.EntityFrameworkCore from Nuget Package Manager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM