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
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.
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#
Ultimate pipeline for NuGet packages
Here I explain how to create the ultimate pipeline for NuGet packages with Azure DevOps as the end of my previous posts. Click to see it
Segment control for Blazor
In this new post, I’m going to explain how to create a segment control for Blazor Web Assembly and Blazor Server. The NuGet package is available
A lot of functions for .NET5
We have just released a lot of functions for .NET5 in a NuGet package that you can download for free. Contains functions for everyday work
Using Chart.js with Blazor
I want to show you how using Chart.js with Blazor Server or Blazor Web Assembly. This is a simple implementation. No using external components
NuGet package with Azure DevOps
Today we are going to create our own NuGet package, publish it to Azure DevOps, and then consume it in our application.
Create an accordion component with Blazor
In this post, I’m going to explain how to create an accordion component with Blazor WebAssembly or Blazor Server in a very simple way
Using biometric identification in Xamarin Forms
I’m going to explain how using biometric identification in Xamarin Forms to simplify authentication before executing certain important actions
Universal PredicateBuilder for Expression
In this new short post, I’ll show you how to create a universal PredicateBuilder for Expression in C# to merge 2 or more expressions with Linq
Configure IdentityServer for Xamarin Forms
In this new post, I explain how to configure IdentityServer for Xamarin Forms to integrate Web Authenticator using Xamarin Essentials
Install MAUI with Visual Studio 2022
Microsoft is talking a lot about this new technology and here I will explain how to install MAUI with Visual Studio 2022 and run a first app
Authentication in Xamarin Forms with IdentityServer
I want to start to use Visual Studio 2022 Preview and create a base Xamarin Forms project integrated with IdentityServer
Create a Blazor component for Quill
Create a Blazor component for Quill allows us to easily consume Quill and place multiple instances of it on a single page in our applications
How to Export Data to Excel in Blazor
In this new post, I’m going to show how to export data to Excel in Blazor WebAssembly or Server. Creating and exporting data to Excel file is one of the frequently used feature in web apps. First, for creating an export in Excel, I will use a free library that is a NuGet package. ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API. So, you can download the full source…
Write a reusable Blazor component
First part of a Blazor article series to tell how to create a reusable Blazor component that will be used in your Blazor applications
Modal Dialog component for Blazor
In this post, I explain how to implement a Modal Dialog component for Blazor WebAssembly that we can use everywhere in our application
Create Tooltip component for Blazor
I want to create a Tooltip component for Blazor WebAssembly, taking advantage of Blazor’s new CSS isolation feature. Click on the link and see
Use LocalStorage with Blazor WebAssembly
In this post I want to show how to use LocalStorage with Blazor WebAssembly to save data in the storage of the browser
InputSelect component for enumerations in Blazor
I can’t find the component I need, so, I have created one and now I’m going to give you the code for InputSelect for enumerations in Blazor
Blazor using HttpClient with authentication
Today, we are going to learn how to create a secure connection in Blazor using HttpClient with authentication to gain access to the protected resources on the Web API’s side. Everything is based on IdentityServer. Until now, we secure Blazor WebAssembly With IdentityServer4 and enabled login and logout actions. After successful login, IdentityServer sends us the id_token and the access_token. But we are not using that access_token yet. So, in this article, we are going to change that. But, using the access token with Blazor WebAssembly is not going to be our…
Secure Blazor WebAssembly with IdentityServer4
I’m going to explain how to secure a Blazor WebAssemble application with IdentityServer4. Also, how to secure API calls