1

Closed

boot commands don't work?

description

Hi, I was working on my OS and decided to make a shutdown command.
So, I used this code I wrote:
if (input == "shutdown" | input == "SHUTDOWN")
{
Cosmos.Sys.Deboot.ShutDown();
}
But the error message read as follows:

Error 2 The type or namespace name 'Sys' does not exist in the namespace 'Cosmos' (are you missing an assembly reference?)

Thus seeing this I tried to add the ref but it is no where to be found.
Any help is appreciated!

Thanks,
CProgrammer3088

No files are attached

Closed Today at 1:06 PM by blah38621

Not an issue.


comments

mterwoord wrote Feb 9 at 2:05 PM

You are missing assembly references..

CProgrammer3088 wrote Feb 9 at 1:59 PM

using <my os name :P>;
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;

Does that look so wrong to you?
I am tell you the ref isn't even on my HDD.
If I am wrong please tell me what to add.
don't just close the bug when its not "fixed".

blah38621 wrote Feb 9 at 1:29 PM

This is an issue with your understanding of C#, not an issue with Cosmos. Look at the using statements in the main kernel.