From 5e607404bb0b0615f9ebb1a34890f6371add7e3b Mon Sep 17 00:00:00 2001 From: oliver Date: Wed, 23 Jul 2025 14:05:07 +1000 Subject: [PATCH] Updated instructions for C# installation and relevant docs --- CSharpWasm/README.md | 4 ++-- README.md | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CSharpWasm/README.md b/CSharpWasm/README.md index f299f576..a399feb8 100644 --- a/CSharpWasm/README.md +++ b/CSharpWasm/README.md @@ -8,11 +8,11 @@ This project enables building and running C# code in the browser using WebAssemb - **CSharpCodeRunner.cs**: A class responsible for compiling C# code, providing the necessary functionality to run the code dynamically. -- **buildAndCopy.sh**: A shell script that builds the project and copies the necessary files into the `Browser_IDE/CSharpWasm` directory. This script helps automate the build process for easy integration with the browser. +- **buildAndCopy.sh**: A shell script that builds the project and copies the necessary files into the `../CSharpWasmExpo` directory. This script helps automate the build process for easy integration with the browser. ### Running the Build and Copy Script -To build the project and copy the necessary files into the `Browser_IDE/CSharpWasm` directory, run the following shell script: +To build the project and copy the necessary files into the `../CSharpWasmExpo` directory, run the following shell script: ```bash ./buildAndCopy.sh diff --git a/README.md b/README.md index 2f736c13..d140c41e 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ The final binary is of course WebAssembly as well, and is linked to a WebAssembl Finally this binary is executed securely in an asynchronous WebWorker. The WebWorker passes commands back to the main window, which then handles actually rendering graphics, playing audio, passing user input back, etc. -## "Backend" Development +## "Backend" Development (DONT FOLLOW THESE STEPS THIS FEATURE IS BEING FIXED) ### SplashKit Wasm Library Manual Compilation (JavaScript backend) First, install Emscripten version 3.1.48, which is required to successfully build the SplashKit core and compile it to Wasm for browser use. The easiest way to do this is via the `emsdk`. Installation instructions are here - [Getting Started](https://emscripten.org/docs/getting_started/downloads.html) @@ -137,6 +137,18 @@ emmake make -j8 For more info, see the [this pull request](https://github.com/thoth-tech/SplashkitOnline/pull/65). +### SplashKit Compiler Library Manual Compilation (C# backend) +1. Firstly, install the [dotnet SDK](https://dotnet.microsoft.com/en-us/download). Please note at current SKO has **only been tested with SDK 9.0** +2. Once the dotnet SDK has been installed Run: +```bash +cd CSharpWasm +chmod +x ./buildAndCopy.sh +./buildAndCopy.sh +``` +3. Once this step is complete you should be able to use C# in SKO + +If you are using **windows**, please execute the command above using git bash or another terminal emulator. + ## License Most of the SplashKit Online IDE is licensed under the GNU General Public License v3.0