简体   繁体   English

在ASP.Net中使用网站开发或使用Web应用程序?

[英]using web site to develop or using web application in ASP.Net?

I want to learn the pros and cons of using Web Site project type or using ASP.Net Web Application Project type? 我想了解使用网站项目类型或使用ASP.Net Web应用程序项目类型的利弊吗?

My web application is using ASP.Net 2.0 or later, and the web application just shows UI, call some other database store procedure and some other WCF Web Services. 我的Web应用程序正在使用ASP.Net 2.0或更高版本,并且该Web应用程序仅显示UI,调用其他数据库存储过程和其他WCF Web服务。

thanks in advance, George 预先感谢乔治

The Web Site project was an attempt by Microsoft to make it as simple as possible to develop and deploy an ASP.NET application, seemingly in an attempt to compete with simpler frameworks such as Ruby on Rails. 该网站项目是Microsoft试图使其尽可能简单地开发和部署ASP.NET应用程序的一种尝试,似乎是为了与Ruby on Rails之类的简单框架竞争。 The Web Site project does not use a csproj file to control references, project settings, etc., it relies on the directory and file structure of the project. 网站项目不使用csproj文件来控制引用,项目设置等,它依赖于项目的目录和文件结构。

In my experience, the lack of a proj file creates more headaches than it solves. 以我的经验,缺少proj文件会使解决的问题更加棘手。 I would definitely stick with Web Application Projects. 我肯定会坚持使用Web应用程序项目。

Here are a few references: 以下是一些参考资料:

http://www.techbubbles.com/aspnet/aspnet-website-vs-web-application-project/ http://www.techbubbles.com/aspnet/aspnet-website-vs-web-application-project/

http://blogs.microsoft.co.il/blogs/maordavid/archive/2007/06/03/ASP.NET-2.0- 2D00 -Web-Site-vs-Web-Application-project.aspx http://blogs.microsoft.co.il/blogs/maordavid/archive/2007/06/03/ASP.NET-2.0- 2D00 -Web -Site-vs-Web-Application-project.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM