i have visual studio professional edition and have downloaded and installed cosmos user kit for developing operating system.when i am making new> project>visual f#> c# operating system --kernel.cs is being made..and there no program.cs file with main and init function as shown in most of the tutorials.in my kernel.cs i have premade beforerun() and run() functions.also,theres no cosmos.compiler.builder or cosmos.sys etc.
is it essential to use visual studio 2008?? is there any other way to have these references?
plzz help!!

using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;


namespace CosmosKernel1
{
    public class Kernel : Sys.Kernel
    {


        protected override void BeforeRun()
        {
            Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
            Console.ForegroundColor = ConsoleColor.Blue;
            myinit();

        }

       public static void myinit()
       {
           Console.WriteLine("TANUOS 2013 ");
           Console.Beep(1000, 1000);
           Console.WriteLine("SESSION START");
// read command
command:
            Console.Write("--> ");
        while (true)
        {
        string command = Console.ReadLine();
        switch (command)
        // Base commands 
        {
            case "about":
                {
                    Console.WriteLine("TANIA operating system 2013 beta developed by Tanu Jain");
                    Console.WriteLine("Support various functionalities");
                    goto command;
                }
            case "clear":
                {
                    Console.Clear();
                    Console.WriteLine("TANIA OS 2013 BETA");
                    goto command;
                }

            case "shutdown":
                {

                    //Cosmos.Core.CPU.GetEndOfKernel();
                    break;
                }
            // help

            case "help":
                {
                    Console.Clear();
                    Console.WriteLine(" TANIA 2013 BETA");
                    Console.WriteLine("User Guide");
                    Console.WriteLine("================================================================================");
                    Console.WriteLine("ABOUT : Display information about system.");
                    Console.WriteLine("CLEAR : Clear user interface.");
                    Console.WriteLine("HELP : Display list of commands.");
                    Console.WriteLine("START : Load main program");
                    Console.WriteLine("SHUTDOWN : End current session and power off machine");
                    Console.WriteLine("");
                    Console.WriteLine("================================================================================");
                    goto command;

                }


            //main program

            case "start":
                {
                    Console.WriteLine("Main program will exist here but i haven't planned it yet.");
                    goto command;
                }



            //if command is incorrect
            default:
                {
                    Console.WriteLine("Command Invalid");
                    goto command;
                }
        };
}


          /*  DrawConsole();
            string UserInput = "help";
            while (true)
            {
                Console.CursorTop = 9;
                Console.CursorLeft = 10;
                UserInput = Console.ReadLine();
                if (UserInput == "Help")
                {

                    outputlines[3] = outputlines[2];
                    outputlines[2] = outputlines[1];
                    outputlines[1] = outputlines[0];
                    outputlines[0] = "        Help- displays a list of commands       ";

                    DrawConsole();

                }
                else 
                {
                    outputlines[3] = outputlines[2];
                    outputlines[2] = outputlines[1];
                    outputlines[1] = outputlines[0];
                    outputlines[0] = "Error : Unrecognised command";
                    DrawConsole();

                }

            }*/

       }
        public static void DrawConsole()
        {
            /*Console.Clear();
            Console.WriteLine("________________________________________________");
            Console.WriteLine("|..............................................|");
            Console.WriteLine("|" + outputlines[3] + "|");
            Console.WriteLine("|" + outputlines[2] + "|");
            Console.WriteLine("|" + outputlines[1] + "|");
            Console.WriteLine("|" + outputlines[0] + "|");
            Console.WriteLine("|..............................................|");
            Console.WriteLine("________________________________________________");
            Console.WriteLine("||||||||||||||||||||||||||||||||||||||||||||||||");

            Console.WriteLine("MyOS  >>                                        ");

            */

        }

        protected override void Run()
        {
            Console.Write("Input: ");
            var input = Console.ReadLine();
            Console.Write("Text typed: ");
            Console.WriteLine(input);
        }
    }
}

this code is correctly working...i have to complete the shutdown case ...for that i need cosmos.sys which is not there ...

I am currently using VISUAL STUDIO 2010 PROFESSIONAL EDITION
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.