Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
713 views
in Technique[技术] by (71.8m points)

asp.net - Automatically Kill IIS Express Process After Debugging (VS Express 2013 Web)

I'm developing an ASP.NET (Razor v2) Web Site in Visual Studio 2013 Express for Web, so when I run the site to debug, VS automatically starts up an IIS Express process.

When I stop debugging using the VS "Stop Debugging" button, the IIS Express System Tray and IIS Express Worker Process continue running, even after VS detaches. (And, I suspect, carrying a bad state from one run to the next, but that's a different question entirely.)

Is there a VS option or project setting somewhere that I can set to automatically kill this process once I hit the "Stop Debugging" control in VS?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, add the Terminate All button to your debug toolbar

  1. Right click tool bar area
  2. select Customize... from context menu
  3. In Customize dialog select Commands tab
  4. Select Toolbar Radio button
  5. From Toolbar Dropdown Select appropriate Toolbar
  6. Click Add Command... Button
  7. From Add Command dialog select Debug Category from list
  8. Select Terminate All from Commands list
  9. Click OK
  10. position Terminate All on the button bar using up/down buttons NB: this is a text only button
  11. Click Close

Just to clarify - I'm using VS2012 Pro and I'm assuming Terminate All exists in VS2013 Express. If you can't find it I suggest clicking the Keyboard Button on the Customize dialog and search for 'Terminate'


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...