两种类型的asp.net核心Web应用程序? [英] Two types of asp.net core Web Apps?

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

问题描述

我试图通过Visual Studio创建一个新的ASP.NET Core Web应用程序,当打开新的项目对话框时,我注意到它提供了两个ASP.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.

如果需要,可以选择.Net Core。可以跨平台运行并可以在Linux或Mac上运行,如果您希望仅在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.

请参阅 为您选择合适的.NET ASP.NET Core文档中的服务器

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

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