https://msdn.microsoft.com/en-us/library/aa983445(v=vs.100).aspx

The Web tab of the project Properties page enables you to specify start behavior, server settings, and debugging properties for Web pages.

Using this tab, you can specify how Visual Studio interprets 解释;翻译 the command to test a Web page when you select Start Debugging or Start Without Debugging on the Debug menu (or when you press F5 or CTRL+F5).

Most of the options on the Web tab are local settings for the current user and are not shared with other users.

An exception is the Server section settings, which apply to all users.

The Web tab properties can be applied only to projects that were created by using the ASP.NET Web application project template.

A project created by using this template is also known as a Web application project.

For Web site projects, you can find some equivalent settings on the Start Options tab of the Property Pages dialog box.

For more information about the differences between Web application projects and Web site projects, see Web Application Projects versus Web Site Projects.

Note:

The options on this page apply only when you are testing a Web application in Visual Studio;

they do not apply when you are deploying a Web application to a production server.

For more information about deployment, see Web Deployment Content Map for Visual Studio and ASP.NET.

To access the Web tab

  1. In Solution Explorer, right-click the name of a Web application project and then click Properties.

    The Properties window appears.

  2. Click the Web tab.

UI Elements

Start Action

The Start Action group enables you to specify which page or process Visual Studio starts when you run the Start command (or press F5 or CTRL+F5).

Current Page

Specifies that Visual Studio will use the default browser to display the page that currently is open in the editor.

Specific Page

Specifies that Visual Studio will run the specified page when you test the website, even if you are currently editing another page.

Note

You can also set this value by right-clicking a page in Solution Explorer and then selecting Set As Start Page.

Start external program

Specifies the full path of an alternative program that Visual Studio will run instead of starting the browser. The alternative program must have an .exe file-name extension.

  • Command line arguments

    Specifies command-line options that will be passed to the external program.

  • Working directory

    Specifies the full path of a working directory in which the external program will start. The path must exist.

Start URL

Specifies a starting URL to open. This option is typically used by Web service projects so that you can start a different website that will call your Web service.

Don't open a page. Wait for a request from an external application.

Specifies that Visual Studio should start your project in a Web server and wait for another application to make a request. This is useful for debugging Web service applications.

Servers

The Servers group contains a drop-down menu that lists the various Web servers that are configured for use with Visual Studio 2013,

which enables you to specify which Web server will be used when you test your Web applications:

IIS Express

Specifies that Visual Studio will use IIS Express to test serve Web pages. This is the default. For more information, see Web Servers in Visual Studio for ASP.NET Web Projects.

Local IIS

Specifies that Visual Studio will test your application on the local IIS Web server.

External Host

Specifies that Visual Studio will test your application by using an external Web server.

[Custom Web Servers]

Visual Studio 2013 allows you to add additional Web servers to the built-in Web servers that are displayed by default in the drop-down list.

For more information about adding custom Web servers, see http://go.microsoft.com/fwlink/?LinkID=324006.

The Servers group contains additional settings that you can specify, and different settings are available depending on the Web server that you choose in the drop-down menu:

If you are using IIS Express or Local IIS:
  • Project URL

    Specifies the URL that points to this Web application.

  • Create Virtual Directory

    Creates an IIS virtual directory for the Web application.

  • Override application root URL

    Specifies an alternative path for the application root URL. Use this option if the Web application root is not the root of your project.

If you are using External Host:
  • Project URL

    Specifies the URL that points to this Web application.

If you are using a custom Web server:
  • Project URL

    Specifies the URL that points to this Web application.

  • Path to Exe

    Specifies the physical path to the executable for the custom Web server.

  • Command Line

    Specifies any command-line parameters that need to be passed to the custom Web server.

  • Working directory

    Specifies the working directory for the custom Web server.

Debuggers

The Debuggers group enables you to specify which debuggers will be available when you test pages.

When a debugger is loaded, it can include debugging engines for different types of code.

The options that you select in the Debuggers group determine which debugging engines are loaded.

Note

Each debugging engine that you load requires memory and affects the performance of debugging overall. In general, you should specify only the debugging engines that you need.

ASP.NET

Specifies that the ASP.NET debugger is loaded whenever you start the debugger. Use this debugger to debug the server code or client script in your pages and in any .NET Framework components that are called from your page.

Note

Processes to be debugged must be compiled with debugging information.

If you clear this check box, Visual Studio starts the debugger but does not try to retrieve process information from IIS and make it available to the debugger. However, you can still debug client script in the page.

For more information, see Debugging Web Pages Overview.

Native Code

Specifies that the debugger for native (unmanaged) code is loaded whenever you start the debugger. This option is useful if your website calls a component (for example, a COM component) that is written in an unmanaged language, such as C++.

If you clear this check box, you can debug managed code, but the debugger will skip any calls to unmanaged code.

For more information, see Debugging Native Code.

SQL Server

Specifies that the debugger for SQL Server stored procedures is loaded whenever you start the debugger.

Silverlight

Specifies that the debugger for Silverlight is loaded whenever you start the debugger.

Enable Edit and Continue

Edit and Continue allows you to change your source code while your program is in break mode and applies those changes without having to end the debug session and build your program again. You can use Edit and Continue in code-behind class files and stand-alone class files. However, editing inline code in an .aspx page or an .ascx file is not allowed. If you edit the Web.config file while debugging, Visual Studio displays a warning message. Saving changes to the Web.config file stops the debugger from loading old assemblies during an application-domain reset.

For more information, see Edit and Continue, Debugging, Options Dialog Box and How to: Create and Edit Configurations.

Web Tab, Project Properties的更多相关文章

  1. Adding Swagger to Web API project

    Adding Swagger to Web API project. All source code for this series can be found here. When you creat ...

  2. Eclipse创建第一个Servlet(Dynamic Web Project方式)、第一个Web Fragment Project(web容器向jar中寻找class文件)

    创建第一个Servlet(Dynamic Web Project方式) 注意:无论是以注解的方式还是xml的方式配置一个servlet,servlet的url-pattern一定要以一个"/ ...

  3. NSwag Tutorial: Integrate the NSwag toolchain into your ASP.NET Web API project

    https://blog.rsuter.com/nswag-tutorial-integrate-the-nswag-toolchain-into-your-asp-net-web-api-proje ...

  4. Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools>Fix project Properties.

    重装操作系统之后,或者破坏了Android的开发环境之后,需要重新配置好Android的开发环境.但是配置好后,导入原有的项目时,报错: Android requires compiler compl ...

  5. Type Project has no default.properties file! Edit the project properties to set one.

    Description Resource Path Location Type Project has no default.properties file! Edit the project pro ...

  6. 转:Transform Web.Config when Deploying a Web Application Project

    Introduction One of the really cool features that are integrated with Visual Studio 2010 is Web.Conf ...

  7. android的Project has no default.properties file! Edit the project properties to set one. 的解决

    网上找来这种方法基本解决: 在我们导入Android工程时,有时候会出现如题所述的错误,打开工程目录可以看到,目录下的default.properties文件没有了或者多出了一个project.pro ...

  8. Web Application Project is configured to use IIS. Unable to access the IIS metabase.(配置为使用IIS Web应用程序xxxx项目。无法访问IIS元数据库。)

    这几天重装系统,装了win10,居然用vs2013打开项目出现下面这个提示错误,搞了很久才知道原因: Even though I am an administrator on the machine, ...

  9. [Android Pro] android 混淆文件project.properties和proguard-project.txt

    参考文档:http://blog.csdn.net/xueyepiaoling/article/details/8202359转载自:http://glblong.blog.51cto.com/305 ...

随机推荐

  1. facade模式-服务-配置----系统生成与配置

    facade模式对外提供一组相关服务: 对内整合子系统: facade模式的创建过程需要依赖外部的配置. 配置完成以后才能使用服务. 推广开来,所有系统都需要生成与配置,然后才能对外提供服务.

  2. PHP数据乱码

    本文主要总结下PHP数据乱码的解决方案 要点:多个不同文件系统里一定要统一编码 [注意] (1)HTML编码与MySQL编码一致: (2)PHP编码与MySQL编码一致: (3)header头发送字符 ...

  3. clock_gettime 用法

    #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/sta ...

  4. MySql-了解存储引擎

    怎么应对不同版本 在不同的 mysql 版本中,很多特性和语法有可能是不一样的,我们怎么样才能知道当前版本的语法是什么样呢?最好的办法是学会使用 mysql 的帮助. A.按照层次看帮助 例如:mys ...

  5. python求两个链表组成的数字的和

    给定两个非空链表来表示两个非负整数.位数按照逆序方式存储,它们的每个节点只存储单个数字.将两数相加返回一个新的链表. 你可以假设除了数字 0 之外,这两个数字都不会以零开头. 示例: 输入:(2 -& ...

  6. Python,socket编程

    TCP协议 IP+端口 应用层协议做的事不同,但都离不开数据的交换,本质上都是收和发~为什么要三次握手?目标机器可能不存在,握手期间,发送方也可能down掉.客户端————服务器,先发请求的那个是客户 ...

  7. Linux学习笔记(二) 文件管理

    了解 Linux 系统基本的文件管理命令可以帮助我们更好的使用 Linux 系统,以下介绍几个常用的文件管理命令 1.pwd pwd 是 Print Working Directory 的简写,用于显 ...

  8. React组件设计技巧

    React组件设计 组件分类 展示组件和容器组件 展示组件 容器组件 关注事物的展示 关注事物如何工作 可能包含展示和容器组件,并且一般会有DOM标签和css样式 可能包含展示和容器组件,并且不会有D ...

  9. 数据分布vs聚类-数据预处理技巧-对数变换

    对于原始数据分布倾斜 利用统计或数学变换来减轻数据分布倾斜的影响.使原本密集的区间的值尽可能的分散, 原本分散的区间的值尽量的聚合. Log变换通常用来创建单调的数据变换.它的主要作用在于帮助稳定方差 ...

  10. codeforces 372 Complete the Word(双指针)

    codeforces 372 Complete the Word(双指针) 题链 题意:给出一个字符串,其中'?'代表这个字符是可变的,要求一个连续的26位长的串,其中每个字母都只出现一次 #incl ...