using System; using System.Collections.Generic; using System.Text; using Sys = Cosmos.System; namespace CosmosKernel3 { public class Kernel : Sys.Kernel { protected override void BeforeRun() { Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back."); } protected override void Run() { Console.Write("Input: "); var input = Console.ReadLine(); Console.Write("Text typed: "); Console.WriteLine(input); } } }
Использую Oracle VirtualBox и Microsoft Visual Studio 2022
При создании ВМ использовал -> Other -> Other\Unknown
В VS studio настройки:
ISO image
и отключен:
Remove Boot Debug Output
Код дефолтный:
Вот что выдаёт ВМ:
А ещё использовал образ.iso в:
bin -> Debug -> net6.0 -> Название.iso