Can we use <UseMaui>true</UseMaui> in .NET Android application ? #14285
-
Hi, I am working on one .NET Android application due to some specific reasons. I Wanted to know if I can add true in my project csproj. I tried this but after adding maui my project no longer show any android device or simulator to deploy on also unable to use any maui specific class let say Connecivity class. I am trying this to use maui.essentials classes. Otherwise I have to write those code on my own or installing third party nugets. Has anybody tries this ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
This is my application type |
Beta Was this translation helpful? Give feedback.
-
You can probably use true if you don't need the whole MAUI. |
Beta Was this translation helpful? Give feedback.
-
https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/native-embedding |
Beta Was this translation helpful? Give feedback.
-
The problem is when we set True in extra native project e.g. Android (as it was in Xamarin Forms .Droid) then in the Start button, device list is gone and if you press Start it will by default just pick last chosen device. Because of this we wonder if it should be done in another way or just Visual studio has a bug |
Beta Was this translation helpful? Give feedback.
-
The marked answer does not solve the issue but just re-iterates it. |
Beta Was this translation helpful? Give feedback.
-
Fixed in the current Preview version |
Beta Was this translation helpful? Give feedback.
The problem is when we set True in extra native project e.g. Android (as it was in Xamarin Forms .Droid) then in the Start button, device list is gone and if you press Start it will by default just pick last chosen device. Because of this we wonder if it should be done in another way or just Visual studio has a bug