[pfemidi@pfemidi ~]$ dnf search dotnet
Last metadata expiration check: 20:14:19 ago on Sun 25 Sep 2022 10:50:05 PM MSK.
=================================== Name Exactly Matched: dotnet ===================================
dotnet.x86_64 : .NET CLI tools and runtime
======================================= Name Matched: dotnet =======================================
dotnet-apphost-pack-3.1.x86_64 : Targeting Pack for Microsoft.NETCore.App 3.1
dotnet-apphost-pack-6.0.x86_64 : Targeting Pack for Microsoft.NETCore.App 6.0
dotnet-build-reference-packages.x86_64 : Reference packages needed by the .NET Core SDK build
dotnet-host.x86_64 : .NET command line launcher
dotnet-hostfxr-3.1.x86_64 : .NET Core command line host resolver
dotnet-hostfxr-6.0.x86_64 : .NET command line host resolver
dotnet-runtime-3.1.x86_64 : NET Core 3.1 runtime
dotnet-runtime-6.0.x86_64 : NET 6.0 runtime
dotnet-sdk-3.1.x86_64 : .NET Core 3.1 Software Development Kit
dotnet-sdk-3.1-source-built-artifacts.x86_64 : Internal package for building .NET Core 3.1 Software
: Development Kit
dotnet-sdk-6.0.x86_64 : .NET 6.0 Software Development Kit
dotnet-sdk-6.0-source-built-artifacts.x86_64 : Internal package for building .NET 6.0 Software
: Development Kit
dotnet-targeting-pack-3.1.x86_64 : Targeting Pack for Microsoft.NETCore.App 3.1
dotnet-targeting-pack-6.0.x86_64 : Targeting Pack for Microsoft.NETCore.App 6.0
dotnet-templates-3.1.x86_64 : .NET Core 3.1 templates
dotnet-templates-6.0.x86_64 : .NET 6.0 templates
[pfemidi@pfemidi ~]$
#if (csharpFeature_TopLevelProgram)
// See https://aka.ms/new-console-template for more information
#endif
#if (!csharpFeature_ImplicitUsings)
using System;
#endif
#if (csharpFeature_TopLevelProgram)
Console.WriteLine("Hello, World!");
#else
namespace Company.ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
}
#endif
dotnet new console --framework net5.0
Error: Invalid option(s):
--framework net5.0
'net5.0' is not a valid value for --framework. The possible values are:
net6.0 - Target net6.0
dotnet new --install net5.0
Warning: net5.0 is not found in NuGet feeds https://api.nuget.org/v3/index.json.
net5.0 could not be installed, the package does not exist.