This tag is redundant. For now, use "maui" instead, because most such questions are there. While ".net-maui" is a superior tag, because more explicit, its been over six months since it was requested that the two tags be merged.
Questions tagged [.net-maui]
548 questions
7
votes
2 answers
Getting a FileNotFoundException when trying to make a SQLite connection in .net MAUI on Android
db = new SQLiteConnection(databasePath);
The above statement works fine on Windows but gets the below error on Android. It also worked fine in xamarin forms on both platforms.
System.IO.FileNotFoundException: 'Could not load file or assembly…

Jim
- 73
- 3
7
votes
1 answer
Can I use existing WinUI3 controls in MAUI project?
Is it possible to use the exisiting controls of WinUI 3 in the MAUI project? Like controls in https://github.com/microsoft/WinUI-Gallery
I installed the WinUI package to my MAUI project

Fruio Nik
- 71
- 5
7
votes
3 answers
Create and use HttpClient in a .NET MAUI app
Do we create/use an HttpClient in a .NET MAUI app, the same way we do, say, in a web or API app? Specifically, I add my HttpClient's to my app in Program.cs using IHttpFactory -- see below:
builder.Services.AddHttpClient("NamedClient1", config =>
{
…

Sam
- 26,817
- 58
- 206
- 383
7
votes
3 answers
Resizetizer One or more invalid file names were detected
I can't get rid of this build error in my .net maui app in Visual Studio for Mac 2022 v17? The build output says:
/usr/local/share/dotnet/packs/Microsoft.Maui.Resizetizer.Sdk/6.0.300-rc.3.5667/targets/Microsoft.Maui.Resizetizer.targets(511,9): error…

Cliffhanger
- 1,057
- 1
- 9
- 18
7
votes
2 answers
Shell navigation in .NET MAUI to a page with Bottom Tabs
During a login flow, the login page does not normally have bottom tabs which constitute the main flow of the app.
AppShell.xaml

Tanaka Mawere
- 683
- 1
- 9
- 22
7
votes
3 answers
Capture KeyDown or KeyPress in .NET MAUI (Windows)
I am working on a barcode reader app for Android and Windows. On Android, I receive a system broadcast for every barcode scanned, but on Windows the typical configuration is a keyboard entry sent from the barcode scanner. So what I am trying to do…

Joerg
- 177
- 2
- 11
7
votes
2 answers
.NET Maui: Vector/SVG splashscreen not correctly resized
Testing to add a custom splash screen for a Maui app, I read some Microsoft docs that says
At build time, the splash screen image is resized to the correct size
for the target platform and device. The resized splash screen is then
added to your…

Ted
- 19,727
- 35
- 96
- 154
6
votes
2 answers
.NET MAUI Transparent Status Bar
How do I make the status bar transparent and show the content behind it on Android using .NET MAUI?
I've seen this post, is there a way to recreate this using C#?
Similar to Google Maps:

DanFlakes
- 55
- 1
- 7
6
votes
2 answers
.net MAUI can't build due to not found target in project.assets.json
I have a .net maui app that I migrated from Xamarin Forms. I can build fine on Azure DevOps and on my Mac. But when I try to build it on Windows in Visual Studio I get this error message:
Assets file '..obj\project.assets.json' doesn't have a…

NPadrutt
- 3,619
- 5
- 24
- 60
6
votes
2 answers
How to create an Android foreground service in MAUI
I'm trying to create a foreground service in MAUI (using .NET 6) for an Android app, but currently, there are no tutorials (that I could find) on achieving this.
What would be the best starting point to add a foreground service or how would you…

bluscience
- 223
- 3
- 7
6
votes
5 answers
.Net MAUI how to include a link in a Label
Using Visual Studio Community edition 2022.
New to .Net MAUI and am trying to follow the examples provided in the documentation found at https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/label
The XAML code below (from the docs)…

bdcoder
- 3,280
- 8
- 35
- 55
6
votes
1 answer
Blazor hybrid (MAUI) authentication with Blazor web view
I'm attempting to build a small sample Blazor Maui app which authenticates the user with identity server. I'm trying to get to the point where I can login from the Maui app and then, whenever I use the blazorWebview component, the authentication…

Stix
- 182
- 1
- 10
6
votes
1 answer
Why can't I compile a .NET MAUI app on Visual Studio 2022?
I wanted to start coding something using .NET MAUI, so I updated my VS2022 to "Version 17.1.0 Preview 6.0".
Then I installed these features using "Visual Studio Installer" as suggested in…

Marco
- 56,740
- 14
- 129
- 152
5
votes
1 answer
5
votes
2 answers
Can't add images to new .NET MAUI project on Mac without getting: The name 'Resources' is reserved and cannot be used
I just started a brand new template .NET MAUI project on my Mac and I am able to build and run the startup project with no problems.
When I add any image to the "Resources/Images" folder and then try to build the project I get the error:
Error…

David Pugh
- 758
- 3
- 12
- 33