Using package dotnet-sdk-8.0.
dotnet-sdk-8.0
mkdir example && cd example dotnet new console dotnet build bin/Debug/net8.0/example
dotnet run
dotnet add package example