Start IIS Express without opening default site

2019-07-19 17:10发布

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?

1条回答
We Are One
2楼-- · 2019-07-19 17:44

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".

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.

查看更多
登录 后发表回答