我的Visual Studio项目是Web应用程序还是网站? [英] Is my Visual Studio project a web application or a web site?

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

问题描述

首先,何时使用什么以及它们之间的总体差异已在前面得到了解答.但是我找不到这个问题的答案:

First of all, when to use what and the overall differences between them has already been answered before. But I couldn't find an answer to this question:

在哪里可以检查我的Visual Studio项目是Web应用程序还是网站?

Where can I check if my Visual Studio project is a Web Application or a Web Site?

推荐答案

就我个人而言,一个告诉我的故事是项目文件夹是否实际上包含项目文件.

Personally, one tell tale sign for me is whether the project folder actually contains a project file, or not.

在VS中,您可以看到图标略有不同-Web应用程序具有分层的world->docs->language图标,而网站仅由world->docs组成.

You can see the icons differ slightly in VS - a web application has a layered world->docs->language icon and a web site just consists of world->docs.

此外,一旦在VS中打开,右键单击将分别显示Web应用程序和网站的PropertiesProperty Pages;此外,在单击此选项时,您会看到前者的对话框和后者的MDI选项卡式表单-后者还提供了更多功能来控制构建前和构建后的步骤,等等.

Also, once opened within VS, right-clicking will display Properties and Property Pages for web applications and web sites respectively; further, on clicking this option you will be greeted with a dialog for the former and MDI tabbed form for the latter - the latter also exposes more functionality to control pre and post build steps and so forth.

Web应用程序还将在解决方案资源管理器中的项目树中显示PropertiesReferences 特殊文件夹,而网站不一定;除非由于某些原因手动创建(但它们仍然不是特殊-网站使用bin文件夹作为参考).

A a web application will also display Properties and References special folders as part of the project tree in the Solution Explorer, whereas a web site does not necessarily; unless manually created for some reason (but they still won't be special - web sites use the bin folder for their references).

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

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