Skip to content

Unable to run .NET MAUI project in windows 11 pro virtual machine #9487

Answered by fingers10
fingers10 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is how I solved using a physical android device.

Steps:

  1. Enable Developer Options in your Mobile device
  2. Enable USB debugging in your Mobile device

  1. Connect your device to your virtual machine. A popup titled Allow USB Debugging? appers in phone. Allow it.

  1. Open MAUI project
  2. From the Project run dropdown select Android Local Devices and select your device.

  1. Now run the app.
  2. It will be deployed in your device and open in your device.
  3. A preview will appear in XAML Live Preview window inside visual studio.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fingers10
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants