Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
DotNETFrameworkNotesForProfessionals.pdf
Скачиваний:
32
Добавлен:
20.05.2023
Размер:
1.82 Mб
Скачать

Chapter 24: .NET Core

.NET Core is a general purpose development platform maintained by Microsoft and the .NET community on GitHub. It is cross-platform, supporting Windows, macOS and Linux, and can be used in device, cloud, and embedded/IoT scenarios.

When you think of .NET Core the following should come to mind (flexible deployment, cross-platform, commandline tools, open source).

Another great thing is that even if it's open source Microsoft is actively supporting it.

Section 24.1: Basic Console App

public class Program

{

public static void Main(string[] args)

{

Console.WriteLine("\nWhat is your name? "); var name = Console.ReadLine();

var date = DateTime.Now;

Console.WriteLine("\nHello, {0}, on {1:d} at {1:t}", name, date); Console.Write("\nPress any key to exit..."); Console.ReadKey(true);

}

}

GoalKicker.com – .NET Framework Notes for Professionals

86