两种类型的asp.net core Web Apps? [英] Two types of asp.net core Web Apps?

查看:36
本文介绍了两种类型的asp.net core Web Apps?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过 Visual Studio 创建一个新的 ASP.NET Core Web 应用程序,当新项目对话框打开时,我注意到它提供了两个 ASP.NET Core 模板,一个使用 .NET Core,另一个使用 .NET Core.NET 框架.为什么有两个模板?ASP.NET 核心应用程序如何使用常规的 .NET 框架?

I've tried to create a new ASP.NET Core web application via Visual Studio and when the new project dialog opened I noticed that it offers two ASP.NET Core templates, one using .NET core and the other the. NET Framework. Why two templates? How can an ASP.NET core application use the regular .NET framework?

推荐答案

ASP.Net Core 与 .Net Core 和 .Net Framework 是分开的.因此,您可以选择在 .Net Core 上运行 ASP.Net Core 或在 .Net Framework 上运行 ASP.Net Core.

ASP.Net Core is a separate thing from .Net Core and .Net Framework. So you are getting the option of running ASP.Net Core on .Net Core or ASP.Net Core on .Net Framework.

如果您想要跨平台并在 Linux 或 Mac 上运行,您会选择 .Net Core,而如果您想要一个仅在 Windows 上运行的全功能更成熟的框架,您会选择 .Net Framework.

You would choose .Net Core if you want to be cross platform and run on Linux or Mac, where as you would choose .Net Framework if you want a full featured more mature framework that only runs on Windows.

参见选择合适的 .NETASP.NET Core 文档.

这篇关于两种类型的asp.net core Web Apps?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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