Ncleardev / NclearOS-2

Cosmos based Operating System with GUI.
https://ncleardev.github.io/NclearOS-2/
35 stars 6 forks source link

Exception: System.InvalidOperationException: Value must be set - NclearOS2NclearOS2 - IL2CPU #6

Open peymanx opened 3 months ago

peymanx commented 3 months ago

Hey there...
I'm using the latest update on Visual Studio 2022 and clone last version of NclearOS-2 v0.6.0 Alpha
I can make a new project of Cosmos os
but when I open clean NclearOS and hit run, the error below appears:
Exception: System.InvalidOperationException: Value must be set. NclearOS2 C...\NclearOS-2-main\NclearOS2\NclearOS2\IL2CPU 1 I've no idea how to fix this

image

Ncleardev commented 3 months ago

I have the same issue and the only solution I've managed to find is to click Run again after the error occurs. It appears that there is a bug in CosmosOS UserKit. For some reason, any changes made to the NclearOS code break the CosmosOS compiler - IL2CPU. There is some code that the compiler doesn't like, but I'm not sure yet which part of it is causing this. CosmosOS DevKit doesn't have the same problem though.