在没有 sp1 和命令窗口的 Visual Studio 2010 中使用 IIS Express

发布于 2024-11-15 14:52:59 字数 918 浏览 5 评论 0原文

我想在 vs 2010 中使用 iis express,但我现在无法安装 sp1,我已经弄清楚如何执行此操作,它接近本指南 如何配置 Visual Studio 2008使用 IIS Express? 并且它可以工作。

我的问题是,当 vs 运行 iisexpress 时,它还有一个烦人的命令窗口(除了托盘图标之外),我想摆脱它。

我无法为 vs 2010 安装 sp1,但我已经安装了带有 sp1 的 vs 2010 express,并且仔细检查,当使用集成的 iis express 选项时,它在没有命令窗口的情况下运行

我所做的就是检查 iis express 是否有一些命令行选项来隐藏窗口,但没有运气,在 sp1 中集成的其他站点选项可以在没有此窗口的情况下运行,所以...

如何以相同的方式执行此操作/或者sp1选项如何正在做这个?


p.s. There is however one catch, if vs runs iis express and you wait couple of seconds and then go to tray-> choose website and click Stop Site the command window disappears but iis still runs and the site also, i don't know if this is a bug or something, but then it is like in sp1 no window, only tray icon.

I want to use iis express with vs 2010 but i can't install sp1 for now, i have figured out how to do this, it is close to this guide How to configure Visual Studio 2008 to use IIS Express? and it works.

My problem is that when vs runs iisexpress it has also an annoying command window (besides the tray icon) which i would like to get rid off.

I can't install sp1 for vs 2010 but i have installed vs 2010 express with sp1 and double checked that when the integrated iis express option is used it runs without command window

First thing i've done was to check if iis express has some command line options to hide the window, but no luck, on the other site option integrated in sp1 can run without this windows, so...

how to do this the same way / or how the sp1 option is doing this ?


p.s. There is however one catch, if vs runs iis express and you wait couple of seconds and then go to tray-> choose website and click Stop Site the command window disappears but iis still runs and the site also, i don't know if this is a bug or something, but then it is like in sp1 no window, only tray icon.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雾里花 2024-11-22 14:52:59
  1. 没有用于禁用命令窗口的命令行选项,但您可以使用 /systray 命令行选项来禁用托盘图标。

  2. Visual Studio 使用 CreateProcess API(或类似的 API),并将创建标志设置为 CREATE_NO_WINDOW (0x08000000)。以下链接可能对您有帮助!
    http://msdn.microsoft.com/en-us/库/ms682425(VS.85).aspx
    http://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspx

  3. 您的观察是由于 VS 已附加到 iisexpress.exe(当您从托盘图标停止站点时) ,iisexpress 正在通过关闭其控制台窗口等方式关闭,但由于 VS 已附加到它,iisexpress 无法退出并在后台运行并等待 VS 释放)

  1. There is no command line option to disable command window, but you can use /systray command line option to disable tray icon.

  2. Visual Studio uses CreateProcess API (or similar API) with creation flag set to CREATE_NO_WINDOW (0x08000000). Following links may help you!
    http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx
    http://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspx

  3. Your observation is due to the fact that VS has attached to iisexpress.exe (when you stopped site from tray icon, iisexpress is in the process of shutdown by closing it's console window etc..., but since VS is attached to it, iisexpress is not able to exit and running in the background and waiting for VS to release)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文