Skip to content

Custom Components

soyfeo123 edited this page Nov 26, 2023 · 4 revisions

Welcome to this tutorial! This tutorial will guide you in the process to make a custom component!

Getting Started

Alright, you should clone the repo. There's multiple ways to do this. Choose whichever one you want!

Important notice

You MUST use Visual Studio 2022. Anything else might not work. You will also need .NET Framework 4.7.2.

After that, you may move on to the next step!

Compiling the API

Note that for creating custom components it is recommended you do not boot SharpOS from your compiled version because that may lead to glitches!

Go inside SharpOS Source, and then inside Bootup Projects. Go into the "sharposkrnl" project, and build ONLY that project.

Do the same steps for the "SharpOS.API" project.

Just in case, if the SharpOS.API build fails, you must check if sharposkrnl is referenced in it. If not, reference it.

After that, you should be almost ready! Soon you will be able to finally start working on your project.

Creating your project and finishing touches

This is where you should be excited! You're almost there.

Create a new Class Library (.NET Framework) project inside the Custom Components folder.

Make sure the project is set to .NET Framework 4.7.2, otherwise you will get a UncompatibleComponentException while loading it!

Clone this wiki locally