受欢迎程度:网站项目与 Web 应用程序项目
我需要创建一个示例项目(用于教育目的),并且我面临着网站项目或 Web 应用程序项目之间的选择。
这感觉类似于 C# 和 VB 之间的选择。我的问题不是这两个选择之间的差异,而是哪个对于一般 ASP.NET 社区更受欢迎(相关、可识别)。
有没有人看过这两种不同项目类型的采用/使用方面的统计数据?我应该使用什么项目类型来吸引最广泛的受众?
--
更新: 我就此主题创建了一项民意调查 - http://poll.fm/2e6cy< /a>
I need to create a sample project (for educational purposes) and I'm faced with the choice between Web Site Projects or Web Application Projects.
This feels similar to the choice between C# and VB. My question isn't about the differences between these 2 choices, but rather which is more popular (relevant, recognizable) to the general ASP.NET community.
Has anyone seen any statistics in terms of adoption/usage of these 2 different project types? What project type should I use to reach the widest audience?
--
Update: I created a poll on this subject - http://poll.fm/2e6cy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我都使用过,而且在我看来,我更喜欢网站项目 - 我们公司甚至从 Web 应用程序切换到网站。它更容易理解,并且一直编译所有内容是一个很大的痛苦。从列出的答案来看:
除了 列出的项目符号(此处),实际上并没有巨大的学习曲线担心如果您选择“错误”(而不是在 C#/VB 之间进行选择)。当人们想到 ASP.NET 时,术语“网站”和“Web 应用程序”很少出现在对话中,这是我们开发人员宁愿不考虑的配置问题之一(如果我们可以帮助的话)。
I've used both and IMO I like the Web Site Project better - our company even switched from Web Application to Web Site. It's easier to understand, and compiling everything, all the time, is a big pain. From the answers listed :
I don't really see a lot of difference between the two besides the bullets listed (here) , there's not really a gigantic learning curve to be afraid of if you choose the "wrong" one (versus choosing between C#/VB ). When people think about ASP.NET, the terms 'Web Site' and 'Web Application' rarelyrarelyrarely ever come into the conversation, it's kind of one of those configuration things we developers would rather not think about if we can help it.
在过去的几年里,我见过大约 25 个项目从网站项目转换为 Web 应用程序项目。在那段时间里,我亲眼目睹了零走向另一个方向。这涵盖了我以不同身份帮助过的大约 10 家不同的公司。
Web 应用程序项目面向较大的开发团队。另一方面,网站项目往往面向较小的(如一个人)开发“团队”。
部分原因包括:
Web 应用程序的编译、部署、各种构建解决方案等都更加强大。
另一方面,网站项目倾向于自动将文件附加到您的项目,没有其他原因,只是它们恰好位于目录结构中。在团队环境中,这没有帮助。
最后一件事,您应该评估您正在为“学生”做哪些准备。如果这只是一个介绍类型的类,那么网站可能更容易掌握一些。如果您相信他们有一天会成为一名真正的程序员,那么就选择 Web 应用程序。更多开发人员使用它。
I've seen about 25 projects over the past several years convert from Web Site Projects to Web Application Projects. In that time I've seen exactly zero go the other direction. This covers around 10 different companies that I have helped in various capacities.
Web Application Projects are geared towards larger development teams. Web Site Projects on the other hand tend to be geared towards smaller (as in 1 person) dev "teams".
Some of the reasons include:
Compilation, deployment, the various Build solutions, etc is much stronger with Web Apps.
Web Site projects on the other hand have a tendency to automatically attach files to your project for no other reason than they happen to be along the directory structure. In a team environment, this isn't helpful.
One last thing, you should evaluate what it is you are preparing your "students" for. If this is just an intro type class, then Web Site is probably a little easier to grasp. If you believe that they will one day go to work as a real programmer, then go with Web Apps. More dev's use that.
事实是,使用哪个项目来吸引最广泛的受众并不重要,因为受众只会看到内容的最终结果,而无论您选择哪种项目类型,最终结果都是相同的。网站与 Web 应用程序完全不同,仅对开发人员和您的部署过程重要。不要根据受欢迎程度来选择,而是根据您作为开发人员的需求来选择。
The fact of the matter is, it doesn't matter which project you use to reach the widest audience, because the audience will see nothing but the end result of the content, which will be identical no matter which project type you choose. Web Site vs Web Application is entirely a difference that matters only to the developer and your deployment process. Don't choose based on popularity, choose based on whichever suits your needs as a developer.