[英]Difference between ASP.NET Web App and ASP.NET MVC 3 Empty Web App?
I want to build my own web framework, and I want to build it in C#. 我想构建自己的Web框架,我想用C#构建它。 I figure the easiest way to get started is to use ASP.NET to handle all the server communication stuff. 我认为最简单的入门方法是使用ASP.NET来处理所有服务器通信的东西。 The rest I want to build my self. 剩下的我想建立自我。 I know next to nothing about ASP.NET. 我对ASP.NET几乎一无所知。 (But know C#, the MVC pattern, and other web frameworks quite well). (但是很了解C#,MVC模式和其他Web框架)。
In Visual Studio 2010 I see 在Visual Studio 2010中,我看到了
I figure one of these should be good as a base. 我认为其中一个应该是一个很好的基础。 I just want some "entry point" into some C# code. 我只想在一些C#代码中加入一些“切入点”。 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. 我开始使用PHP,因此我无法在浏览器中加载文件,这有点奇怪。 Anyway, which should I use? 无论如何,我应该使用哪个? What's the difference between a plain ASP.NET Web App and an empty MVC 3 app? 普通的ASP.NET Web App和空的MVC 3应用程序有什么区别? If it's "empty" it shouldn't be using any of the MVC framework, should it? 如果它是“空的”它不应该使用任何MVC框架,是吗? I just want to make sure I use the latest and greatest "ASP" for handling the server stuff before I embark down this road. 我只是想确保在走上这条道路之前使用最新最好的“ASP”来处理服务器。
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. ASP.NET Web App是一个非空的Web应用程序(意味着它有一个基本的文件设置),旨在与ASP.NET WebForms一起使用。 For tutorials: http://www.asp.net/web-forms 对于教程: 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). ASP.NET MVC 2空Web应用程序是一个空项目,旨在与ASP.NET MVC版本2(当前版本)一起使用。 For tutorials: http://www.asp.net/mvc 对于教程: 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). ASP.NET MVC 3空Web应用程序是一个空项目,旨在与ASP.NET MVC版本3(现在是候选版本)一起使用。 For info: http://www.asp.net/mvc/mvc3 有关信息: 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. 关于WebForms vs MVC,这是另一个讨论。 I personally switched for my new project to MVC, and perhaps it's better suitable for your Framework app. 我个人将我的新项目转换为MVC,也许它更适合您的Framework应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.