ASP.NET Web App和ASP.NET MVC 3 Empty Web App之间的区别?

时间:2022-10-10 03:29:40

I want to build my own web framework, and I want to build it in C#. I figure the easiest way to get started is to use ASP.NET to handle all the server communication stuff. The rest I want to build my self. I know next to nothing about ASP.NET. (But know C#, the MVC pattern, and other web frameworks quite well).

我想构建自己的Web框架,我想用C#构建它。我认为最简单的入门方法是使用ASP.NET来处理所有服务器通信的东西。剩下的我想建立自我。我对ASP.NET几乎一无所知。 (但是很了解C#,MVC模式和其他Web框架)。

In Visual Studio 2010 I see

在Visual Studio 2010中,我看到了

  • ASP.NET Web Application
  • ASP.NET Web应用程序

  • ASP.NET MVC 2 Empty Web Application
  • ASP.NET MVC 2空Web应用程序

  • ASP.NET MVC 3 Empty Web Application
  • ASP.NET MVC 3空Web应用程序

I figure one of these should be good as a base. I just want some "entry point" into some C# code. I started with PHP so it's a little bit weird for me to not be able to just load up a file in my browser. Anyway, which should I use? What's the difference between a plain ASP.NET Web App and an empty MVC 3 app? If it's "empty" it shouldn't be using any of the MVC framework, should it? I just want to make sure I use the latest and greatest "ASP" for handling the server stuff before I embark down this road.

我认为其中一个应该是一个很好的基础。我只想在一些C#代码中加入一些“切入点”。我从PHP开始,所以我无法在浏览器中加载文件,这有点奇怪。无论如何,我应该使用哪个?普通的ASP.NET Web App和空的MVC 3应用程序有什么区别?如果它是“空的”它不应该使用任何MVC框架,是吗?我只是想确保在走上这条道路之前使用最新最好的“ASP”来处理服务器。

1 个解决方案

#1


5  

Perhaps you shouldn't start with an Empty Web Application, because it just gives you the references to the assemblies, but doesn't give you any sample code.

也许您不应该从空Web应用程序开始,因为它只是为您提供程序集的引用,但不提供任何示例代码。

ASP.NET Web App, is a NOT empty web app (meaning it has a basic setup of files), meant to be used with ASP.NET WebForms. For tutorials: http://www.asp.net/web-forms

ASP.NET Web App是一个非空的Web应用程序(意味着它具有文件的基本设置),旨在与ASP.NET WebForms一起使用。对于教程:http://www.asp.net/web-forms

ASP.NET MVC 2 Empty Web Application is an empty project, meant to be used with ASP.NET MVC version 2 (the current version). For tutorials: http://www.asp.net/mvc

ASP.NET MVC 2 Empty Web Application是一个空项目,旨在与ASP.NET MVC版本2(当前版本)一起使用。对于教程:http://www.asp.net/mvc

ASP.NET MVC 3 Empty Web Application is an empty project, meant to be used with ASP.NET MVC version 3 (now a release candidate). For info: http://www.asp.net/mvc/mvc3

ASP.NET MVC 3空Web应用程序是一个空项目,旨在与ASP.NET MVC版本3(现在是候选版本)一起使用。有关信息:http://www.asp.net/mvc/mvc3

Before creating your framework, dig into the tutorials, play around, and only then start building your framework.

在创建框架之前,深入研究教程,玩游戏,然后才开始构建框架。

And about WebForms vs MVC, that's a whole other discussion. I personally switched for my new project to MVC, and perhaps it's better suitable for your Framework app.

关于WebForms vs MVC,这是另一个讨论。我亲自将我的新项目转换为MVC,也许它更适合您的Framework应用程序。

#1


5  

Perhaps you shouldn't start with an Empty Web Application, because it just gives you the references to the assemblies, but doesn't give you any sample code.

也许您不应该从空Web应用程序开始,因为它只是为您提供程序集的引用,但不提供任何示例代码。

ASP.NET Web App, is a NOT empty web app (meaning it has a basic setup of files), meant to be used with ASP.NET WebForms. For tutorials: http://www.asp.net/web-forms

ASP.NET Web App是一个非空的Web应用程序(意味着它具有文件的基本设置),旨在与ASP.NET WebForms一起使用。对于教程:http://www.asp.net/web-forms

ASP.NET MVC 2 Empty Web Application is an empty project, meant to be used with ASP.NET MVC version 2 (the current version). For tutorials: http://www.asp.net/mvc

ASP.NET MVC 2 Empty Web Application是一个空项目,旨在与ASP.NET MVC版本2(当前版本)一起使用。对于教程:http://www.asp.net/mvc

ASP.NET MVC 3 Empty Web Application is an empty project, meant to be used with ASP.NET MVC version 3 (now a release candidate). For info: http://www.asp.net/mvc/mvc3

ASP.NET MVC 3空Web应用程序是一个空项目,旨在与ASP.NET MVC版本3(现在是候选版本)一起使用。有关信息:http://www.asp.net/mvc/mvc3

Before creating your framework, dig into the tutorials, play around, and only then start building your framework.

在创建框架之前,深入研究教程,玩游戏,然后才开始构建框架。

And about WebForms vs MVC, that's a whole other discussion. I personally switched for my new project to MVC, and perhaps it's better suitable for your Framework app.

关于WebForms vs MVC,这是另一个讨论。我亲自将我的新项目转换为MVC,也许它更适合您的Framework应用程序。