microsoft / VSSDK-Extensibility-Samples

Samples for building your own Visual Studio extensions
http://aka.ms/extendvs
MIT License
1.22k stars 452 forks source link

Sample showing how to disable run under certain circumstances, when my project type is loaded. #247

Open CartBlanche opened 2 years ago

CartBlanche commented 2 years ago

Installed products

Description

I need the ability to enable and disable run under certain circumstance, when my specific project type is loaded. Eg. if a particular device is not plugged in the USB, then the user can build, but cannot run the project, as that would involve deploying to the device. Once the device is plugged in, then I would enable run so they can deploy and run the app on that device.