WSA icon indicating copy to clipboard operation
WSA copied to clipboard

Visual Studio should discover and auto-connect ADB to WSA

Open dotMorten opened this issue 2 years ago • 5 comments

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?

  • [ ] I have set this issue's milestone to Future Release

dotMorten avatar Oct 19 '22 05:10 dotMorten

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!

hamza-usmani avatar Oct 19 '22 21:10 hamza-usmani

Would like that too, but in visual studio code.

SergeBerwert avatar Nov 15 '22 10:11 SergeBerwert

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

mcumming avatar Nov 17 '22 04:11 mcumming

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.

BethMassi avatar Sep 29 '23 20:09 BethMassi

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

SergeBerwert avatar Sep 30 '23 11:09 SergeBerwert