c# - 了解 .NET Core 和 Entity Framework 的版本

标签 c# asp.net entity-framework asp.net-core entity-framework-core

我无法理解许多 ASP.NET Core 框架名称之间的区别: - dnxcore50 - dotnet5.4 - 网络核心应用

dotnet5.4dnxcore50 的新名称?

我创建了类库项目,project.json 中有dotent5.4。然后我创建空的 ASP.NET 项目,其中有 dnxcore50

我将依赖项添加到 Microsoft.EntityFrameworkCore 1.0.0 以进行项目并得到错误:

依赖 Microsoft.EntityFrameworkCore 不支持框架 NETPlatform,Version=v5.4

什么是正确的框架版本和 Entity Framework 版本?

最佳答案

如果您使用最新的工具和框架,您可以避免很多问题。

这是链接:Visual Studio 2015 Update 3 and .NET Core 1.0

enter image description here

什么是目标框架名字对象 (TFM)?

The Target Framework Monikers are IDs of the type framework+version that you can target from your apps in .NET Core and ASP.NET Core.

例如,您可以使用:

– .NET Core 1.0 的“netcoreapp1.0”

– .NET Framework 版本的“net45”、“net451”、“net452”、“net46”、“net461”

– PCL 配置文件的“portable-net45+win8”

–“dotnet5.6”、“dnxcore50”等,适用于较旧的 .NET Core 预览版(在 .NET Core 1.0 RTM 和 .NET Core RC2 发布之前)

– .NET 标准平台名称的“netstandard1.2”、“netstandard1.5”等。

下表 定义了您可以使用的最新框架(截至 2016 年 6 月下旬)的一些示例、它们的引用方式以及它们实现的 .NET 标准库版本:

enter image description here

您可以在这里阅读: Running .NET Core apps on multiple frameworks and (TFMs)

关于c# - 了解 .NET Core 和 Entity Framework 的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39437758/

相关文章:

c# - 对于 C# 开发,您会推荐 Eclipse 而不是 VS 2010 吗?

c# - 如何将引号 ("or ' ) 和带引号的字符串写入 Razor View

asp.net - 在没有 Request 对象的情况下获取 asp.net 服务器和应用程序 url

ASP.NET MVC 要求我重新验证 PNG 文件而不是 GIF 或 JPEG

javascript - 如何在 UpdatePanel 的内容完全加载后触发回调函数?

asp.net - 来自 Controller 的数据在 View 中不可见 - ASP MVC

asp.net-mvc - 使用哪些技术来启动新项目? (技术视角)

c# - 连接的 SQL 列返回空值,是否有解决方法?

c# - 在 MSTest 中如何找到要在 ClassInitialize 或 AssemblyInitialize 中运行的测试总数?

c# - MySQL - 实体 : The value for column 'IsPrimaryKey' in table 'TableDetails' is DBNull