Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have been making a OS in COSMOS with Visual C# 2010 Express with COSMOS Milestone 4
but, when i press F5 to debug it, i get a window that lets me select the emulator,ect then , when i click "build" on that window, it dosent build it and it starts a widow called "cosmos builder" . what am i doing wrong?
here is the code if you need it.
C#
using System;
using Cosmos.Compiler.Builder;

namespace CosmosBoot1
{
    class Program
    {
        #region Cosmos Builder logic
        // Most users wont touch this. This will call the Cosmos Build tool
        [STAThread]
        static void Main(string[] args)
        {
            BuildUI.Run();
        }
        #endregion

        // Main entry point of the kernel
        public static void Init()
        {
            var xBoot = new Cosmos.Sys.Boot();
            xBoot.Execute();
            Console.WriteLine("Welcome! You just booted CharlieOS ! Type a command to contenue ");
            Console.ReadLine();
            if (Console.ReadLine() == ("help"))
            {
                Console.Write("Commands: 'help': displays help 'dir': makes a directory.");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               Console.ReadLine();  }
            else if (Console.ReadLine() == "dir")
            {
                System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\");

                foreach (System.IO.FileInfo file in dir.GetFiles("*.*"))
                {
                    Console.WriteLine("{0}, {1}", file.Name, file.Length);
                }
                Console.ReadLine();
            }
            while (true)
                ;
            
        }
    }
}
Posted

1 solution

Hi,
Take a look at this post which is a nice article about Cosmos:
Cosmos - C# Open Source Managed Operating System[^]

Cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900