The exciting news in April for mobile app development is that the release of .NET MAUI Release Candidate (RC) is here.
Category: .NET
.NET (dotnet) is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.
So, there are various implementations of .NET (dotnet). Each implementation allows .NET code to execute in different places—Linux, macOS, Windows, iOS, Android, and many more. This framework has two main versions:
- Framework is the original implementation of .NET. It supports running websites, services, desktop apps, and more on Windows.
- Core is a cross-platform implementation for running websites, services, and console apps on Windows, Linux, and macOS. .NET Core is open source on GitHub.
Then, Xamarin/Mono is a .NET (dotnet) implementation for running apps on all the major mobile operating systems, including iOS and Android.
The .NET Standard is a formal specification of the APIs that are common across .NET implementations. This allows the same code and libraries to run on different implementations.
Therefore, the two major components of .NET (dotnet) Framework are the Common Language Runtime and the .NET Framework Class Library.
- The Common Language Runtime (CLR) is the execution engine that handles running applications. It provides services like thread management, garbage collection, type-safety, exception handling, and more.
- The Class Library provides a set of APIs and types for common functionality. It provides types for strings, dates, numbers, etc. The Class Library includes APIs for reading and writing files, connecting to databases, drawing, and more.
Summarize, .NET (dotnet) applications are written in the C#, F#, or Visual Basic programming language. Code is compiled into a language-agnostic Common Intermediate Language (CIL). Compiled code is stored in assemblies—files with a .dll or .exe file extension.
At the end, when an app runs, the CLR takes the assembly and uses a just-in-time compiler (JIT) to turn it into machine code that can execute on the specific architecture of the computer it is running on.
Add Security Headers to Blazor WebAssembly
In this new post, I like to explain how to add security headers to Blazor WebAssembly to follow the recommendations from OWASP.
Add Security Header our website
In this new post, I’ll show you how to add security header to our website to be ready for a penetration test. Quick and easy to implement.
Handling file uploads in OpenAPI
This post is about implementing handling file uploads in OpenAPI with ASP.NET Core. Open API is one way to document REST API endpoints.
Testing APIs with RestClient in Visual Studio Code
I show a simple way for Testing APIs with RestClient in Visual Studio Code. RestClient is a simple extension for Visual Studio Code.
Remote debug Android devices
In this post, I show you how to remote debug live content on an Android device from your Windows, Mac, or Linux computer. Easy peasy
Browser detect component for Blazor
In this post, I talk about user-agent and I’m going to create a browser detect component for Blazor WebAssembly and Blazor Server with .NET6.
World Map component for Blazor
This World Map component for Blazor WebAssembly and Blazor Server creates an interactive map of the world or specific region and shows your data
Simple XML minifier in C#
In this new post, I give you my code for a simple XML minifier in C#. I know I always have strange thought but I’m a developer
SVG Icons and flags for Blazor
SVG Icons and flags for Blazor is a new library that contains tons of icons in SVG format and also all the world flags for each country
Add Code Snippet in Razor pages
In this new post, I show you how to add code snippet in Razor pages for Blazor WebAssembly and Blazor Server using highlight.js
Dynamically add JavaScript from Blazor components
In this new post, I show you the code to dynamically add JavaScript from a Blazor components coming from the component itself or another URL
Minimal APIs in NET6
From now on, we can create minimal APIs in NET6 that allows us to write in few lines of code powerful APIs. I collect all my understanding
Uploading files in ASPNET Core
Uploading files in ASP.NET Core is largely the same as standard full framework MVC but now we can stream large files. Here I explain how
Copy to Clipboard component for Blazor
I’ll create a Copy to Clipboard component for Blazor. I use the button to notify if the copy is successful. So, I return reset the button
Markdown Editor component for Blazor
I have created a new Markdown Editor component flexible and rich of functionalities for Blazor WebAssembly and Blazor Server with .NET6.
Upload/Download Files using HttpClient
In this new post, I show you how to upload/download files using HttpClient in C# and .NET Core. Creating a new version of the Markdown Editor component for Blazor, I face some issues with the file upload. So, I was working to find a solution and now I can tell you how to do it. First, I will take a look at how to send multipart MIME data to a Web API using HttpClient. We will create two applications to demonstrate the data transfer between the client side and the server side. The server-side…
Handling exceptions globally with NET6
In this new post, I like to show how handling exceptions globally with .NET6 adding a single class using a generic exception middleware
Install MAUI with Visual Studio 2022 (Preview)
In this new post I show you how to install MAUI with Visual Studio 2022 (Preview) after the official release of Visual Studio 2022.
Code Snippet component for Blazor
Today I want to show you how to create a Code Snipper component for Blazor using highlight.js that is available for 191 different languages
Azure Pipelines Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0
Azure Pipelines Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. How to fix this error in pipeline on Azure DevOps
DataTable component for Blazor
I have just released a new DataTable component for Blazor WebAssembly and Blazor Server. The NuGet package is available here. The source code will be available soon on GitHub. This component supports client/server side paging, filtering and sorting. DataTable in action Installation So, first install the package from NuGet or execute this command or Then, open your index.html or _Host.cshtml and add the CSS in the head of the page and then the script at the bottom of the page Then, add in your _Imports.razor file the following using: Also, in the…
Markdown editor with Blazor
In this new post, I will show you have to create a simple Markdown editor component for Blazor Assembly and Blazor Server. Source code inside.
Managing a .NET Service with Blazor
In this post I will show you how creating a cross-platform and managing a .NET Service with Blazor that can be installed on Windows and Linux
Tabs control for Blazor
In this new post, I explain how to create and use Tabs control for Blazor Web Assembly and Blazor Server with basic HTML, CSS and C#