积极答复者
ASP.NET development server auto close

问题
-
if you stop the debug of ASP.NET of VS, the ASP.NET development server is not auto close.
it is different from before.
how to configure it?
- 已移动 Sheng Jiang 蒋晟Moderator 2011年8月12日 18:43 (发件人:Visual C#)
答案
-
Hi,
The below is a workaround to do that:
Imports System Imports System.Diagnostics Public Module KillCassini Sub RestartDebug() If (DTE.Debugger.DebuggedProcesses.Count > 0) Then DTE.Debugger.Stop(True) End If KillCassini() DTE.Debugger.Go(False) End Sub Sub KillCassini() Dim name As String = "WebDev.WebServer" Dim proc As Process For Each proc In Process.GetProcesses If (proc.ProcessName = name) Then proc.Kill() End If Next End Sub End Module
- 已标记为答案 Song TianModerator 2011年8月17日 11:50
全部回复
-
You are more likely to get more efficient responses at http://forums.asp.net where you can contact ASP.NET experts.
ASP.NET Forums › General ASP.NET › Configuration and Deployment Forum
Martin Xie [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Hi,
The below is a workaround to do that:
Imports System Imports System.Diagnostics Public Module KillCassini Sub RestartDebug() If (DTE.Debugger.DebuggedProcesses.Count > 0) Then DTE.Debugger.Stop(True) End If KillCassini() DTE.Debugger.Go(False) End Sub Sub KillCassini() Dim name As String = "WebDev.WebServer" Dim proc As Process For Each proc In Process.GetProcesses If (proc.ProcessName = name) Then proc.Kill() End If Next End Sub End Module
- 已标记为答案 Song TianModerator 2011年8月17日 11:50
-