Also, the menu item should really be initial-capitalized, instead of tunnel as the last word of the command, with a lowercase t, it should be uppercase T.
In any event, add an update handler to the command where the Start ngrok Tunnel menu item is disabled if any of the following are true:
(a) Visual Studio is open but no solution is currently loaded
(b) A solution is loaded and there are no Web projects in it
Ideally, there should also be settings via Tools -> Options that allows the user to override this behavior (say, if they are building a console or Windows Sockets app such as for Cybersecurity applications).
Also, the menu item should really be initial-capitalized, instead of tunnel as the last word of the command, with a lowercase
t
, it should be uppercaseT
.In any event, add an update handler to the command where the Start ngrok Tunnel menu item is disabled if any of the following are true:
(a) Visual Studio is open but no solution is currently loaded (b) A solution is loaded and there are no Web projects in it
Ideally, there should also be settings via Tools -> Options that allows the user to override this behavior (say, if they are building a console or Windows Sockets app such as for Cybersecurity applications).