This is an update to my previous blog post .
The Visual Studio Macro from previous article doesn’t support IISExpress or IIS; it only supported the Visual Studio Development Server, more over it doesn’t detect latest Development Web Server WebDev.WebServer40.exe.
Now I have updated the Macro so that it will automatically detect the Web Server setting from the project properties and attach it accordingly.
Below is the code for the new Macro, I think it is self-explanatory
Public Sub AttachToWebServer()
Read my previous article to understand how we can add this Macro as command to the Visual Studio toolbar.