XGrid welcomes focused fixes and features. Read this page and Architecture first.
- The product is the Avalonia shell + native XGrid core.
- The managed validation projects are an oracle, not the product path.
- XGrid is GPL-2.0-or-later. Do not add code you cannot license compatibly.
- Never commit firmware, BIOS images, EEPROMs, HDD images or game data.
dotnet restore XGrid.sln
dotnet build XGrid.sln -c Release --no-restore --nologoBuild the core when you touch native code or the integration path:
pwsh -File scripts/build-native-xemu.ps1On Linux, build the same tree with bash scripts/build-native-xemu.sh.
See Building from source.
- Open or claim an issue that describes the behavior.
- Keep one logical change per pull request.
- Add or update tests that fail before the change and pass after it.
- Run the gates:
See Testing and Code inspection.
dotnet test XGrid.sln -c Release --nologo --no-build dotnet format XGrid.sln --no-restore --verify-no-changes jb inspectcode XGrid.sln --format=Text --output=wt-data/inspectcode.txt --severity=WARNING --no-swea
- Update the documentation in the same change.
- Include the licensing/provenance updates for ported code.
- C#: nullable enabled, warnings as errors, analyzers clean.
- No implicit usings; add explicit
usingdirectives. - Keep hot paths allocation-free.
- Visibility:
publicis a cross-assembly contract,internalis the default for implementation types, andprivateis the default for helpers. Public members on an internal type areinternalunless an interface or the runtime requires otherwise. - Document every public type and member with XML comments.
- Log through Serilog (
Log.Information,Log.Warning,Log.Error). Do not add newConsole.WriteLineorDebug.WriteLinediagnostics, and log a caught exception before handling it. - Keep async method names suffixed with
Async. - Native core: follow xemu's style;
clang-formatnew C files. - Tests use xUnit; names describe behavior.
- New native code goes in
xemu/xgrid-core/. - Upstream edits are recorded in
xemu/xemu-patches/. - Preserve original copyright/license notices; add SPDX and
Ported fromlines. - Update
THIRD_PARTY_NOTICES.mdand the legal pages. - Rebuild the core and run the shell tests.
See The native core and Porting and provenance.
- User-facing pages live under
docs/; the sidebar isdocs/_sidebar.md. - Use relative links inside
docs/. Test them before opening a pull request. - Keep
wiki/pages in sync when a user-visible behavior changes. - Do not reintroduce historical session logs, wave notes or internal task narratives.
- Put a new user-visible feature in the guide that describes the task, not only in the reference table.
- Do not add copyrighted firmware or games to the repository.
- Reference source trees are read-only and are not part of the build.
- If you port code, follow Porting and provenance.
Do not file public issues for vulnerabilities. Follow
SECURITY.md.
Open an issue with:
- what you expected;
- what happened;
- the Activity log around the failure;
- your platform, renderer and hosting mode.