#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.
Только Net6.0 и Net3.1, других неты отсутствую вообще.