Objectif: installer .NET, configurer VS Code et exécuter un premier programme sans IDE lourd.
dotnet
dotnet --info dotnet --list-sdks
dotnet new console -n MonProjet cd MonProjet dotnet run
dotnet new console
dotnet run
int quantite = 12; string nom = "Clavier"; bool actif = true; double prix = 49.99;
if (prix > 100) { Console.WriteLine("Produit premium"); } foreach (string categorie in categories) { Console.WriteLine(categorie); }
if
switch
for
foreach