16,436 questions with .NET-related tags

Sort by: Updated
1 answer

Maui app publish as EXE- steps in windows

Hi, I usually clean & rebuild my app in debug and later run this cmd : dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-13T16:07:10.6866667+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T18:35:25.1833333+00:00
Dani_S 4,191 Reputation points
1 answer

Why MAUI app as Exe is big

Hi, Why MAUI app as exe is big on windows? it can be solved Please see https://app.screencast.com/BVvSAWCZnNh9e ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-13T15:40:13.0066667+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T18:13:42.61+00:00
Bruce (SqlWork.com) 72,276 Reputation points
0 answers

ANDROID REDIRECT URI

I am trying to test the sample https://github.com/Azure-Samples/ms-identity-dotnetcore-maui/tree/main/MauiAppWithBrokerTo run in Android, it requires that "AndroidRedirectUri" be defined. The Entra ID portal requires a hash key that has to be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-11T11:29:25.92+00:00
Giorgio Sfiligoi 326 Reputation points
edited a comment 2025-03-13T17:37:54.08+00:00
Giorgio Sfiligoi 326 Reputation points
0 answers

WebView Navigated Event Not Triggered in .NET MAUI

I am experiencing an issue with the WebView control in my .NET MAUI app where the Navigated event does not fire after navigation. Here’s the scenario: The Source property of the WebView is set to a valid URL. I have subscribed to the Navigated event…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2024-12-04T09:00:00.18+00:00
Manjunath Vadigeri 10 Reputation points
commented 2025-03-13T14:42:23.21+00:00
Jaboulay, Francois Gael 0 Reputation points
0 answers

WebView Navigated Event Not Triggered in .NET MAUI

I am experiencing an issue with the WebView control in my .NET MAUI app where the Navigated event does not fire after navigation. Here’s the scenario: The Source property of the WebView is set to a valid URL. I have subscribed to the Navigated event…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2024-12-04T09:00:00.18+00:00
Manjunath Vadigeri 10 Reputation points
commented 2025-03-13T14:42:23.21+00:00
Jaboulay, Francois Gael 0 Reputation points
1 answer One of the answers was accepted by the question author.

Fonts become italic

Hi, In Maui template we have: fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); Later I publish the app as exe. When I create setup with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-10T15:23:18.23+00:00
Dani_S 4,191 Reputation points
edited a comment 2025-03-13T13:55:32.5066667+00:00
Dani_S 4,191 Reputation points
5 answers

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,341 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 25 Reputation points
answered 2025-03-13T11:51:28.4433333+00:00
Max Borrmann 5 Reputation points
0 answers

Error loading font 'Assets/Fonts/Segoe UI.ttf'. on log

Hi, I have this error when running the MAUI as exe. I do not have this fonts on my app in RESOURCES/FONTS and not resister it. 2025-03-13 11:57:26,921 [1] ERROR Microsoft.Maui.FontManager - Error loading font 'Assets/Fonts/Segoe…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-13T10:01:37.4166667+00:00
Dani_S 4,191 Reputation points
0 answers

Highlighting text within a editor

Hi, I'm using .Net 9 with MAUI. Highlighting text within a editor. The highlight is not released. Remains highlighted even after selecting other text. <telerik:RadBorder Grid.Row="2" Grid.Column ="0" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-12T11:20:07.41+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T09:49:58.2966667+00:00
Dani_S 4,191 Reputation points
0 answers

Dirty log in login

Hi, I used log4net. When login I got this errors in the log, what it come from? Thanks. 2025-03-12 15:25:00,516 [1] ERROR GssdDesktopClient.Maui.ViewModels.LoginViewModel - LoginCommand System.InvalidOperationException: PlatformView cannot be null here …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-12T13:28:18.6933333+00:00
Dani_S 4,191 Reputation points
commented 2025-03-13T09:49:00.31+00:00
Dani_S 4,191 Reputation points
0 answers

Unable to debug in Mac in Code

I have a Macbook with OS Sequoria. Xcode version 16.2. When I tried installing MAUI .NET 9.0.200 and tried debugging in VS Code. I got the below error: System.UnauthorizedAccessException: Access to the path…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-13T09:00:35.2933333+00:00
Chinmay Dole 225 Reputation points
1 answer

flipping card update

I have my card using CommunityToolkit.Mvvm.Messaging; using System.Diagnostics; namespace LiveTileControl.Controls { public partial class LiveTileControl : ContentView { private bool _isFlipping; private bool _isDataAvailable; //…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-12T23:15:05.47+00:00
Eduardo Gomez Romero 1,335 Reputation points
edited an answer 2025-03-13T07:53:53.2533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,166 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Flyout IsPresented is property is not working as expected

I tried to determine whether the Flyout is presented using this approach: https://learn.microsoft.com/en-us/answers/questions/2200916/how-to-detect-the-flyout-open-and-close-in-maui It works fine in most cases, but I encountered an issue in a specific…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-10T17:24:12.1933333+00:00
Vaibhav Methuku 100 Reputation points
accepted 2025-03-13T07:44:45.3733333+00:00
Vaibhav Methuku 100 Reputation points
0 answers

Picker.Focus() Not working in Windows - MAUI

Hello, I had a layout, Basically on tapping on that layout, I want to focus my picker. Unfortunately. picker.focus() is not working. Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-13T07:31:30.59+00:00
Vaibhav Methuku 100 Reputation points
2 answers

.Net 8.0.10 and 8.0.11 hosting bundle doesn't install components

I have downloaded and installed the .NET Core Hosting bundle for 8.0.10 on the windows sever 2019. In the past when installing this bundle it will install the following components: Microsoft .NET Runtime - version (x64) Microsoft .NET Runtime - version…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,199 questions
asked 2025-03-06T17:31:36.6633333+00:00
commented 2025-03-13T06:25:41.5433333+00:00
Jiachen Li-MSFT 33,781 Reputation points Microsoft External Staff
1 answer

Microsoft .NET Host -8.0.13 (x64) Popup

I keep getting a random popup with the header Microsoft .NET Host - 8.0.13 (x64) stating "The feature you are trying to use is on a network resource that is unavailable." It further states "Click OK to try again, or enter an alternative…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,199 questions
asked 2025-03-02T14:53:00.7466667+00:00
Steve Bailey 0 Reputation points
commented 2025-03-13T06:25:15.9666667+00:00
Jiachen Li-MSFT 33,781 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Android-specific code on MAUI: Trouble with Android.Resource

What I am trying to achieve right now is something I've done before in other prototypes where I work, but I haven't run into this problem so far. I will give as much context as possible without making this question too long. Our app will use ARCore on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-11T17:26:09.4233333+00:00
Kleber Ferreira 20 Reputation points
commented 2025-03-13T02:44:43.3066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,691 Reputation points Microsoft External Staff
0 answers

how to draw this in .net.android

there is two points to one circle how to draw it? I am using canvas in OnDraw points:(p0x,p0y)and (p1x,p1y) and the center of the circle is (x,y) how to draw the line and the circle? I know how to draw circle but I do not want to draw the rest of the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-12T14:29:45.3+00:00
mc 5,186 Reputation points
commented 2025-03-13T02:32:06.6066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,211 Reputation points Microsoft External Staff
0 answers

pick appropriate .json data in Tab (ShellContext)

As a senior+ hobby developer I'm stuck. I know - whoever helps - this is not what this GitHub forum is for and, I know, this is an imposition! Anyway, hopefully somebody has some time and is willing to help, thank you. my APP:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
asked 2025-03-12T09:25:58.7233333+00:00
Eduard Kaufmann 291 Reputation points
commented 2025-03-13T02:26:05.2533333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,211 Reputation points Microsoft External Staff
1 answer

Microsoft dotnet ef migration error

When I run any dotnet ef command, like "dotnet ef migrations add InitialCreate", i get the following error message: Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked 2022-11-17T16:11:22.873+00:00
Kefiloe Moshoaliba 6 Reputation points
commented 2025-03-12T23:42:16.2866667+00:00
Pon ArunKumar Ramalingam 0 Reputation points