Creating Project
Prerequisites
- You need to download https://gitlab.com/sciter-engine/sciter-js-sdk/-/releases.
- You need install https://dotnet.microsoft.com/en-us/download.
Prepare C# project
Create C# project
dotnet new create console --language=C# --name=TestProjectName
Add Sciter Package
dotnet add test.csproj package EmptyFlow.SciterAPI
Write basic startup code
using EmptyFlow.SciterAPI;
SciterLoader.Initialize ( Environment.CurrentDirectory ); // you need specify folder where will be located sciter library file (sciter.dll/libsciter.so/libsciter.dylib)
var host = new SciterAPIHost (); // create host
host.LoadAPI (); // load sciter API and make adjustments for further work
host.CreateMainWindow ( 300, 300, enableDebug: true, enableFeature: true ); // create main window and enable debug mode and sciter features (like access to system in JavaScript)
host.LoadFile ( "file://path/my.html" ); // load HTML page, path specified in first argument
host.Process (); // start sciter and run main loop for show main window