The type or namespace 'Sys' doest not exist in the name space

Topics: Using Cosmos (Developing your own OS, projects, etc)
Dec 29, 2015 at 4:43 PM
So basically I'm trying to create a basic OS with basic functions with cosmos my problem is on shutdown and restart function.
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;

namespace CosmosKernel3
{
    public class Kernel : Sys.Kernel
    {
        protected override void Run()
        {
            Console.WriteLine("Cosmos booted successfully!");
            while (true)
            {
                string command = Console.ReadLine();
                switch (command)
                {
                    case "shutdown":
                        {
                          Cosmos.Sys.Deboot.ShutDown();
                            break;
                        }
                    case "help":
                        {
                            Console.WriteLine("hello - Simple OS command");
                            Console.WriteLine("about - About OS ");
                            break;
                        }
                    case "about":
                        {
                          Console.WriteLine("COSMOS OS 1.0 ");
                            break;
                        }
                    case "reboot":
                        {
                            Cosmos.Sys.Deboot.Reboot();
                            break;
                        }
                    case "hello":
                        {
                            Console.WriteLine("Hello User! Thanks for using this operating system!");
                            break;
                        }
                    default:
                        {
                            Console.WriteLine("No such command");
                            command = null; break;
                        }
                }
            }
        }
    }
}
Can you guys tell me what's wrong with it, and what's the proper way to do shutdown and restart command on COSMOS.
Coordinator
Dec 30, 2015 at 9:21 AM
What version of Cosmos are you using?


2015-12-29 17:43 GMT+01:00 kennethrekt <[email removed]>:

From: kennethrekt

So basically I'm trying to create a basic OS with basic functions with cosmos my problem is on shutdown and restart function.
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;

namespace CosmosKernel3
{
    public class Kernel : Sys.Kernel
    {
        protected override void Run()
        {
            Console.WriteLine("Cosmos booted successfully!");
            while (true)
            {
                string command = Console.ReadLine();
                switch (command)
                {
                    case "shutdown":
                        {
                          Cosmos.Sys.Deboot.ShutDown();
                            break;
                        }
                    case "help":
                        {
                            Console.WriteLine("hello - Simple OS command");
                            Console.WriteLine("about - About OS ");
                            break;
                        }
                    case "about":
                        {
                          Console.WriteLine("COSMOS OS 1.0 ");
                            break;
                        }
                    case "reboot":
                        {
                            Cosmos.Sys.Deboot.Reboot();
                            break;
                        }
                    case "hello":
                        {
                            Console.WriteLine("Hello User! Thanks for using this operating system!");
                            break;
                        }
                    default:
                        {
                            Console.WriteLine("No such command");
                            command = null; break;
                        }
                }
            }
        }
    }
}
Can you guys tell me what's wrong with it, and what's the proper way to do shutdown and restart command on COSMOS.

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 2, 2016 at 12:45 PM
The latest one.