This is an update to my previous blog post Attach to Visual Studio Development Server with One Click.
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
1 | Public Sub AttachToWebServer() |
Read my previous article Attach to Visual Studio Development Server with One Click to understand how we can add this Macro as command to the Visual Studio toolbar.