Installing the .NET SDK
As you may have guessed, the .NET SDK is required because we’ll be developing CLI applications using .NET.
Although any version of .NET would do, we’ll use .NET 8 for the following reasons:
- It is the latest Long Term Support (LTS) version of .NET and will be supported until November 10, 2026 (https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core)
- It is cross-platform, so the CLI applications we’ll be building with .NET 8 can be executed on Windows, Linux, or macOS
Before you install the .NET 8 SDK, you can verify whether it’s already installed by using this command (works on Windows, Linux, and macOS):
$ dotnet --list-sdks
This will return the list of installed .NET SDKs on your machine.
The list should look like this:
3.1.424 [C:\program files\dotnet\sdk] 5.0.100 [C:\program files\dotnet\sdk] 6.0.402 [C:\program files\dotnet\sdk] 7.0.404 [C:\program files\dotnet\sdk]
If the .NET...