What is .NET Core?

.NET Core is a framework developed and maintained by Microsoft. Thus, if you are determined to learn and build applications in the future, Net Core is the best solution. In this digital era, it is common to find an application that runs across different devices. While considering this factor, Microsoft created .NET Core as a single framework that works everywhere. When compared to the previous version which was the .NET framework, .NET Core is used in a variety of verticals and has advanced features. One of the outstanding advantages of the .NET core is that it enables developers to build applications for all operating systems. Also, it is known for being modern, flexible, and fast. In this guide, I will take you through the process of installing and using .NET Core 6.0 on windows 10/11.

General Features of .NET Core

  • Open-source platform – Developers adore NET Core due to its open-source characteristic. All aspects of NET Core are open source including class libraries, compilers, runtime, and languages. Hence, it is possible to create applications without incurring licenses costs.
  • Cross-Platform Framework – Net Core runs on Windows, Mac, and on different distributions of Linux. This implies that developers have the freedom to build applications compatible with all platforms.Also, after creating them, you are assured they will run smoothly on all operating systems.
  • Modular-NET Core is modular in its design and architecture. Thus, available components are all separated yet they can communicate effectively in well-designed interfaces. In this case, one can switch the components when a need arises.
  • Modern-NET Core is designed to solve today’s problems. It is mobile-friendly and targets all devices including IoTs.
  • High Performance-When compared to the previous versions, NET Core is fast and efficient.

What’s new in .NET 6.0 release?

.NET 6.0 is the newest version which was released on November 8, 2021. It is a long-term support release(LTS) meaning .NET 6.0 will be supported for 3 years. Note that this is the first release that supports macOS Apple Silicon and has been improved for Windows Arm64. Also, .NET 6.0 LTS is compatible with Visual Studio 2022 which was released alongside it.

Advanced Features in .NET 6.0 include:

  • Dotnet monitor and open telemetry support
  • HTTP/3 Support
  • More performant WebAssembly

Install .NET Core 6.0 LTS on Windows 10 / Windows 11

Installation processes for NET 6.0 take a couple of steps. Note that .NET 6.0 consist of runtime used to run .NET applications and the SDK for creating .NET apps and libraries.

Step 1: Search for NET 6.0

The first step for installing.NETCore 6.0 on windows is searching for it from the internet. Hence type the word .NET 6.0 on your browser and click on the first results that will appear.

Click enter when this window appears

Step 2: Download .NET 6.0 on Windows

Go ahead and click on the first link on the google page. Then, choose the software that matches your computer’s specifications. In that case, let’s choose Windows x64.

After you choose the right .NET 6.0, the downloading process will take place immediately.

Step 3: Install .NET 6.O on Windows

After some minutes, you will find the already downloaded setup on your windows downloads. Double-click on it to start the installation. Click on Run to continue with the procedure.

A small window will appear. Click on install.

After some time, the file will install successfully. The below window will open showing you that NETCore 6.0 has been successfully installed on windows.

Set Environment

It is important to set the environment by editing environment variables for your account. Go to the search bar on your computer and type the word environment. The image below shows where it is located on windows.

Click on the Open and when a window appears choose “new” to proceed with the process of setting environment for .NET 6.0 on Windows.

A small screen will pop up. Fill the spaces with this information.

  • Variable name: ASPNETCORE.ENVIRONMENT
  • Variable value: Development

Click OK to complete the procedure of setting an environment for .NET 6.0 n Windows. Then confirm the process was successful using Command Prompt.

Start by typing the term cmd on your search bar and run it as an administrator as shown below.

On the cmd window, type setx ASPNETCORE_ENVIRONMENT Development /M then hit the Enter Button. This picture shows the results.

The results will show that the environment was set successfully.

Step 4: Enable PowerShell tab completion on Windows

A powerful PowerShell feature that most people take advantage of is PowerShell Tab Completion. It enables you to tab through available values which you can pass to PowerShell commands. To make this possible, you will follow these same steps.

1. Search for PowerShell

On your computer’s search bar, type the word PowerShell.Then run Windows PowerShell as an administrator.

A new scripting pane will open as shown below with the PowerShell for windows.

2. Creating Profile for Tab Completion

To successfully add tab completion in PowerShell, you are required to create a profile. Thus, type $profile on your PowerShell as the initial step, then click Enter.

Go ahead and type New-Item -ItemType file $profile -Force and hit Enter

The details of the profile you have created will be displayed after the execution of the commands you have entered.

3. Open notepad editor

On your Windows Powershell, click on the script pane arrow to open Notepad.Then type or copy this code:

#PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
}
}

This picture shows Windows PowerShell notepad editor with the code you will type.

4. Save your script

To enable tab completion in PowerShell, you must save the scrip you entered. The save icon is shown on this image.

Step 5: Create Hello-world usage example for .NET Core

With .NET 6.0 installed on your Windows, you can now create applications.

You can start by creating a simple hello world program.

In that case, open a terminal such as Command Prompt and type dotnet run –project sample1, and hit Enter.

After the commands are executed a “Hello world” result will be displayed.

Conclusion

As a wrap-up, .NET Core 6.0 is the newest release but you can easily navigate through it when you follow the above steps. Keep in mind that this guide has detailed instructions on how you will install and use .NET Core 6.0 on Windows system. In case you have any queries, feel free to leave a comment.

Other guides you can use include:

LEAVE A REPLY

Please enter your comment!
Please enter your name here