在不打开默认站点的情况下启动IIS Express [英] Start IIS Express without opening default site

查看:64
本文介绍了在不打开默认站点的情况下启动IIS Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从Visual Studio 2012启动我的MVC4项目时,IIS Express会启动,然后自动启动默认站点(即我正在处理的站点)的默认页面.

When I launch my MVC4 project from Visual Studio 2012, IIS Express starts and then automatically launches the default page for the default site (i.e. the one I'm working on).

如何防止它打开默认页面-某处是否有配置选项?

How do I prevent it from opening the default page - is there a config option somwhere?

推荐答案

如果要在启动时在浏览器中打开其他文件,请右键单击解决方案资源管理器中的文件,然后选择设置为开始页"

If you want to open a different file in your browser when you start then right-click on a file in your Solution Explorer and choose "Set as start page".

要不执行任何操作(即,不调用浏览器就启动IIS),然后转到项目属性,然后转到"Web"选项卡.那里有一些设置.

To not do anything (i.e. just start IIS without invoking your browser) then go to your project properties and go to the Web tab. There are some settings there.

这篇关于在不打开默认站点的情况下启动IIS Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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