Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.22 KB

BUILDING.md

File metadata and controls

35 lines (24 loc) · 1.22 KB

Building GS2Compiler

Tests

dotnet test '.\Preagonal.Scripting.GS2Compiler.UnitTests\Preagonal.Scripting.GS2Compiler.UnitTests.csproj'

Windows CLI

dotnet publish '.\Preagonal.Scripting.GS2Compiler.Cli\Preagonal.Scripting.GS2Compiler.Cli.csproj' -c Release -r win-x64 --self-contained false -o '.\artifacts\publish\cli-win-x64'

Windows Native AOT DLL

dotnet publish '.\Preagonal.Scripting.GS2Compiler.Native\Preagonal.Scripting.GS2Compiler.Native.csproj' -c Release -r win-x64 -o '.\artifacts\publish\native-win-x64'

Browser WASM

dotnet workload install wasm-tools wasm-tools-net8 wasm-tools-net9
dotnet publish '.\Preagonal.Scripting.GS2Compiler.Cli\Preagonal.Scripting.GS2Compiler.Cli.csproj' -c Release -r browser-wasm -o '.\artifacts\publish\cli-browser-wasm'

WASI

dotnet workload install wasi-experimental
dotnet publish '.\Preagonal.Scripting.GS2Compiler.Cli\Preagonal.Scripting.GS2Compiler.Cli.csproj' -c Release -r wasi-wasm -o '.\artifacts\publish\cli-wasi-wasm' /p:WASI_SDK_PATH='.\artifacts\tools\wasi-sdk-25.0-x86_64-windows\'

The .NET 10 WASI SDK target requires wasi-sdk 25.0; the path must include the trailing slash.