none
ASP.NET development server auto close RRS feed

答案

  • 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 
    


     

    2011年8月15日 8:27
    版主

全部回复