简体   繁体   English

在IIS模式下运行VS并按F5

[英]Running VS In IIS Mode and pressing F5

I prefer running VS over IIS (not cassini). 我更喜欢通过IIS(而不是Cassini)运行VS。 I've always though manually attached to the worker process via file menu. 我一直通过文件菜单手动附加到工作进程。 Can you just use F5 just as you can with Cassini only it's doing the same wiring tot he asp.net worker process but working with IIS not cassini? 您能否像在Cassini中一样使用F5,只是它与asp.net worker进程进行的布线相同,而在IIS中却不是Cassini? It looks like it, I never really tried F5 for a while after moving to use IIS like 7 years ago but looks like you can still just press F5 evenif you're using IIS mode (virtual directoryin IIS, setting your VS web project to use IIS virtual directory). 看起来像这样,我在7年前开始使用IIS后就没有真正尝试过F5了,但是即使您使用的是IIS模式(IIS中的虚拟目录,将VS Web项目设置为使用IIS虚拟目录)。

concur? 同意?

Yep, you can do that. 是的,你可以做到。

Create the site on IIS first. 首先在IIS上创建站点。

  1. Then in VS right-click on your site root under Solution Explorer. 然后在VS中,右键单击解决方案资源管理器下的站点根目录。
  2. on the new window, select 'Start Options' 在新窗口中,选择“开始选项”
  3. in here, you can select 'Use Custom Server' and provide the Base URL to your site, maybe something like http://localhost (whatever you set your bindings to) 在这里,你可以选择“使用自定义服务器”,并提供基本URL到你的网站,也许是这样http://localhost (无论你设置你的绑定)

It should now run through IIS when you press F5 现在,当您按F5键时,它应该通过IIS运行

Is this what you meant? 这是你的意思吗? Sorry if i misunderstood.. 对不起,如果我误会了..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM