本文介绍了使用Visual Studio 2010中的IIS防爆preSS不带SP1和命令窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想使用IIS的前preSS用VS 2010,但是,我已经找到了如何做到这一点,我不能代表现在安装SP1,它是接近本指南How到2008年配置的Visual Studio为使用IIS防爆preSS?和它的作品。我的问题是,当VS运行iisex preSS它也是一个恼人的命令窗口(除了托盘图标),我想摆脱掉。我无法安装SP1的VS 2010,但我已经安装了VS 2010的前preSS带SP1和双重检查,当集成的IIS前preSS选项用于它运行没有命令窗口 我已经做的第一件事是检查如果IIS前preSS有一些命令行选项来隐藏窗口,但没有运气,就集成在SP1中可以没有这个窗口中运行,因此其他站点选项.. 如何做到这一点同样的方式/或如何SP1的选项,这样做呢?附:但是这里有一个陷阱,如果VS运行iis的前preSS和你等待几秒钟,然后去tray->选择网站,然后单击停止网站上的命令窗口中消失,但是iis的仍然运行,该网站还,我不知道这是否是一个错误或什么的,但后来它就像在SP1中没有窗户,只有托盘图标。解决方案 有没有命令行选项来禁用命令窗口,但可以使用/托盘的命令行选项来禁用任务栏图标。 Visual Studio中使用API​​函数CreateProcess(或类似API)与(0x08000000)设置为CREATE_NO_WINDOW创建标志。以下链接可以帮助你! http://msdn.microsoft.com/en-us/库/ ms682425(VS.85)的.aspx http://msdn.microsoft.com/en-us/library/ms684863(VS.85)的.aspx 您的观察是由于这一事实,即VS先后隶属iisex press.exe(当你通过关闭从托盘图标,iisex preSS是关机的过程中停止网站的控制台窗口等等,但由于VS连接到它,iisex preSS不能退出,在后台运行,并等待VS释放) 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 windowFirst 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. 解决方案There is no command line option to disable command window, but you can use /systray command line option to disable tray icon.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).aspxhttp://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspxYour 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) 这篇关于使用Visual Studio 2010中的IIS防爆preSS不带SP1和命令窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-31 07:01