简体   繁体   English

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

[英]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中,我看到了

  • 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. 我只想在一些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.

相关问题 具有ASP.NET MVC的数据库Web应用 - Database web app with ASP.NET MVC 这两个项目有什么区别,ASP.NET MVC2 Web应用程序和ASP.NET MVC2 Empty Web应用程序? - what is the difference between these two projects, ASP.NET MVC2 web application and ASP.NET MVC2 Empty Web application? ASP.NET MVC和Web Forms在同一个Web应用程序中? - ASP.NET MVC alongside Web Forms in the same web app? 在 asp.net 核心 mvc web 应用程序中使用 asp.net 核心 web api - Consuming asp.net core web api in asp.net core mvc web app asp.net mvc应用程序和asp.net Web应用程序之间有什么区别 - what is the difference between the asp.net mvc application and asp.net web application What is the difference between ASP.NET Web Forms vs ASP.NET WebSite vs ASP.NET Web Application vs ASP.NET MVC? - What is the difference between ASP.NET Web Forms vs ASP.NET WebSite vs ASP.NET Web Application vs ASP.NET MVC? 在经典ASP.Net Web表单和MVC混合应用程序中路由 - Routing in a hybrid app that is classic ASP.Net web forms and MVC 在Azure Web App上预编译ASP.NET MVC视图 - Precompile ASP.NET MVC views on Azure Web App Asp.net MVC网络应用程序和iOS移动应用程序 - Asp.net MVC web application and iOS mobile app 在Azure中部署ASP.NET MVC Web应用程序的数据库问题 - Database issues with deploying ASP.NET MVC web app in Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM