何时使用Web应用程序项目和网站项目? [英] When to use Web Application Projects and Web Site Projects?

查看:75
本文介绍了何时使用Web应用程序项目和网站项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

何时使用Web应用程序项目和网站项目???

如果我有一个依赖项目哪个更有利?

When to use Web Application Projects and Web Site Projects???
Which is more advantageous if i hvae an dependant project??

推荐答案

试试这个链接:



http ://msdn.microsoft.com/en-us/library/dd547590.aspx [ ^ ]



http://www.tonymarston.net/php-mysql/web-site-vs-web-application.html [ ^ ]
try this links:

http://msdn.microsoft.com/en-us/library/dd547590.aspx[^]

http://www.tonymarston.net/php-mysql/web-site-vs-web-application.html[^]


您好,



http:// forums.asp.net/t/1785078.aspx/1 [ ^ ]



http:// vishaljoshi。 blogspot.in/2009/08/web-application-project-vs-web-site.html [ ^ ]
Hi,

http://forums.asp.net/t/1785078.aspx/1[^]

http://vishaljoshi.blogspot.in/2009/08/web-application-project-vs-web-site.html[^]


请查看以下信息链接。

1. ASP.NET:网站或Web应用程序? [ ^ ]。

Please check out the below informative links.
1. ASP.NET: Web Site or Web Application?[^].


网站:



网站项目即时编译。你最终得到了更多的DLL文件,这可能是一个痛苦。当您在一个目录中有页面或控件需要引用另一个目录中的页面和控件时,它也会出现问题,因为其他目录可能尚未编译成代码。另一个问题可能在于发布。



如果不告诉Visual Studio不断重复使用相同的名称,它将为DLL提供新的名称页面始终生成的文件。这可能会导致包含相同类名的DLL文件的几个密切副本,这将产生大量错误。 Web站点项目是在Visual Studio 2005中引入的,但事实证明它并不是非常受欢迎。



Web应用程序:



Web应用程序项目的另一个不错的功能是它很多更容易从项目视图中排除文件。在网站项目中,您排除的每个文件都使用文件名中的exclude关键字重命名。在Web应用程序项目中,项目只是跟踪项目视图中包含/排除的文件而不重命名,使事情变得更加爽快。


Website:

The Web Site project is compiled on the fly. You end up with a lot more DLL files, which can be a pain. It also gives problems when you have pages or controls in one directory that need to reference pages and controls in another directory since the other directory may not be compiled into code yet. Another problem can be in publishing.

If Visual Studio isn''t told to re-use the same names constantly, it will come up with new names for the DLL files generated by pages all the time. That can lead to having several close copies of DLL files containing the same class name, which will generate plenty of errors. The Web Site project was introduced with Visual Studio 2005, but it has turned out not to be extremely popular.

Web Application:

The Web Application Project was created as an add-in and now exists as part of SP 1 for Visual Studio 2005. The main differences are the Web Application Project was designed to work similar to the Web projects that shipped with Visual Studio 2003. It will compile the application into a single DLL file at build time. In order to update the project it must be recompiled and the DLL file published for changes to occur.

Another nice feature of the Web Application project is it''s much easer to exclude files from the project view. In the Web Site project, each file that you exclude is renamed with an exclude keyword in the filename. In the Web Application Project, the project just keeps track of which files to include/exclude from the project view without renaming them, making things much tider.

也检查其他答案。 br />


2. Web应用程序项目与网站项目在Visual Studio 中[ ^ ]。你会在这里详细说明。



谢谢...

Check the other answers also.

2. Web Application Projects versus Web Site Projects in Visual Studio[^]. You will every details here.

Thanks...


这篇关于何时使用Web应用程序项目和网站项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆