microsoft / WSA

Developer-related issues and feature requests for Windows Subsystem for Android
MIT License
1.51k stars 829 forks source link

Visual Studio should discover and auto-connect ADB to WSA #56

Open dotMorten opened 1 year ago

dotMorten commented 1 year ago

Is your feature request related to a problem? Please describe

When installing WSA and enabling developer mode, WSA is not offered as a run-target in VS. You first have to open the ADB prompt and manually connect, while trying to remember the command to do so (and before this learn that you need to do this).

Describe the solution you'd like

I'd want Visual Studio to auto-detect that WSA is installed, and automatically offer WSA as a run-target. If WSA isn't running, first time you launch your application, Visual Studio will run the ADB connect command, and deploy the application to WSA. This saves the step from having to manually connect every single time you launch Visual Studio and put the work on the tooling side to do this step. It would help discovery for any developer who wants to deploy to Android.

With Android devices, all you do is plug them into the USB port and they are auto-offered as a target. WSA should be just as easy, if not easier, since it is already installed and available.

Describe alternatives you've considered

No response

Have you set this feature request's Milestone field to Future Release?

hamza-usmani commented 1 year ago

Hi, this currently isn't on our roadmap but this is an excellent feature request for us to look at given the demand for it!

SergeBerwert commented 1 year ago

Would like that too, but in visual studio code.

mcumming commented 1 year ago

While you wait for this feature in Visual Studio, there is an extension that makes it a little easier: Windows Subsystem for Android Barista

BethMassi commented 11 months ago

This is something we're working on. If you have WSA installed and Developer Mode turned on, it will automatically show up under Android Local Devices when you open a MAUI project in Visual Studio 17.8 Preview 2.

SergeBerwert commented 11 months ago

As a Flutter developer, I would appreciate it if it works in Visual Studio code independent of the project type.