xamarin
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
Resource file “**/*.resx” cannot be found. (MSB3552) on VS for Mac
I was running dotnet core on osx and had the same issue. The problem was that I generated a folder using a windows path. When created on disk, it was not visible in Finder due to its naming \Uploads. Do a ls -la and see if there are any strange folders or files in there. … Read more
How to enable borders in Grid in Xamarin.Forms
There’s no Border property for GridView, but: Just set grid.BackgroundColor to your desired border color value, then set grid.ColumnSpacing and grid.RowSpacing to some value and make sure all controls you add to the grid have own BackgroundColor set correctly.
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
The “LinkAssemblies” task failed unexpectedly
Apparently, this is a known issue: Xamarin Forms needs the TargetAndroidVersion to be 21. (In the config GUI, this is entitled “Compile using Android version:”)
Android App Compile Not Generating Package Resources
I encountered the same issue. Ensure that your resource files do not include any special characters The actual error you may be encountering is: Invalid file name: must contain only [a-z0-9_.] Change your build output verbosity in visual studio to see better log output.
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