What is MAUI? and what are differences between MAUI and Xamarin

With .NET 5 Microsoft begins the journey of unifying the .NET platform, bringing .NET Core and Mono/Xamarin together in one base class library (BCL) and toolchain (SDK), more about it here. .NET MAUI is a name for a new upgraded solution as a Multi-platform App UI framework for building native cross-platform apps with .NET for … Read more

What is the difference between colorPrimary and colorPrimaryDark in themes

colorPrimary – The color of the app bar. colorPrimaryDark – The color of the status bar and contextual app bars; this is normally a dark version of colorPrimary. colorAccent – The color of UI controls such as check boxes, radio buttons, and edit text boxes. windowBackground – The color of the screen background. textColorPrimary – … Read more

Change default timeout

The default timeout of an HttpClient is 100 seconds. HttpClient Timeout You can adjust to your HttpClient and set a custom timeout duration inside of your HttpService. httpClient.Timeout = 5000; HttpClient Request Timeout You could alternatively define a timeout via a cancellation token CancellationTokenSource using (var cts = new CancellationTokenSource(new TimeSpan(0, 0, 5)) { await … Read more

How to enable migrations in Visual Studio for Mac

This is currently supported on Mac. First you need to install dotnet-ef dotnet tool install –global dotnet-ef To install a specific version of the tool, use the following command: dotnet tool install –global dotnet-ef –version 3.1.4 Add the “dotnet-ef” tools directory on the PATH environment variable. export PATH=”$PATH:/Users/’your user folder’/.dotnet/tools” Open a command line, go … Read more