CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.91k stars 549 forks source link

A few problems. priority_extreme #335

Closed jesus123123 closed 8 years ago

jesus123123 commented 8 years ago
  1. Rings. Whenever I try to add the assembly for ring in the hardware class, i always get the error that there is basically no such thing. "The type or namespace 'Ring' could not be found..."
  2. Running?! "A project with an Output Type of Class Library cannot be started directly." I have honestly no clue.
mterwoord commented 8 years ago

1: Add a reference to Cosmos.Common assembly, which is where the RingAttribute is located 2: You should have a .cosmos project in your solution. THat's the project you need to set as startup project.

jesus123123 commented 8 years ago
  1. i did add a reference to cosmos.common.
  2. How can i tell the what the file extension is
mterwoord commented 8 years ago

1: Have you also added the using statement in the top of the file? 2: It's the one with the cosmos icon. Probably has Boot as suffix.

jesus123123 commented 8 years ago
  1. I added using Cosmos.Common; and using Cosmos.Common.Extensions;
mterwoord commented 8 years ago

What Cosmos version are you using?

Can you find the boot project yet?

jesus123123 commented 8 years ago

I just installed the cosmos devkit, lets see if it works now.

I was using the userkit >-<

jesus123123 commented 8 years ago
  1. done, ring working now
  2. Wont start the boot project.

error i think thats causing it: Error: Exception: System.Exception: Native code encountered, plug required. Please see https://github.com/CosmosOS/Cosmos/wiki/Plugs). System.String System.Number.FormatInt32(System.Int32, System.String, System.Globalization.NumberFormatInfo).

A few lines later...

1> Errorred 1> IL2CPU invoked with DebugMode='Source', DebugEnabled='True',StackCorruptionDetectionLevel='{NULL}', TraceAssemblies='{NULL}', IgnoreDebugStub='False' 1> IL2CPU task took 00:00:00.6561749 1>Done building project "CosmosKernel2Boot.Cosmos" -- FAILED. 1> Build has been canceled.

mterwoord commented 8 years ago

You're using a method that's not working yet. You could switch to devkit.

jesus123123 commented 8 years ago

I am currently using devkit, the most recent one, though i'm not entirely sure how to use it. I installed it, and it opened up a HUGE file labeled "cosmos", so i exited out and made my opened my other project. However, this project was imported from VS 2013 with the userkit installed.

UPDATE: Just checked the logs, seems that its using userkit, though i have devkit installed.

mterwoord commented 8 years ago

Devkit? THen int32.tostring should work. Maybe you could join the gitter chat? That way we can communicate faster.

What's the code of your kernel?

jesus123123 commented 8 years ago

Yeah, lets move to a COSMOS gitter chat