Skip to content

Building

github-actions[bot] edited this page Dec 4, 2026 · 12 revisions

Building

This page describes how to build SimpleXisoDrive from source.


Prerequisites

Requirement Notes
Windows, Linux or macOS The shared core and the Unix app target net11.0; the Windows app targets net11.0-windows.
.NET 11 SDK Version 11.0.0 or later. The repository pins the SDK in global.json.
Git To clone the repository.
Dokan (Windows) / FUSE 3 (Linux, macOS) Not required to build. Required to run the built executable.

Verify the SDK:

dotnet --version

The global.json file specifies:

{
  "sdk": {
    "version": "11.0.0",
    "rollForward": "latestMajor",
    "allowPrerelease": false
  }
}

rollForward: latestMajor allows a newer major SDK to build the project.


Repository layout

Path Contents
CSharp_SimpleXisoDrive.sln Solution with all projects
SimpleXisoDrive.Core/ Shared class library (net11.0): VFS, image parsing, services
SimpleXisoDrive/ Windows application project (net11.0-windows, Dokan)
SimpleXisoDrive.Unix/ Linux/macOS application project (net11.0, FUSE 3)
SimpleXisoDrive.Tests/ xUnit test project (net11.0-windows)
docs/ This documentation

The FUSE 3 mount library is not part of this repository. It is consumed from NuGet as LibFuseSharp (MIT); its source and releases live in https://github.com/purelogiccode/LibFuseSharp.


Common commands

Run all commands from the repository root.

# Restore packages
dotnet restore CSharp_SimpleXisoDrive.sln

# Debug build
dotnet build CSharp_SimpleXisoDrive.sln

# Release build
dotnet build CSharp_SimpleXisoDrive.sln -c Release

# Run the tests
dotnet test CSharp_SimpleXisoDrive.sln

# Run the Windows application from source
dotnet run --project SimpleXisoDrive/SimpleXisoDrive.csproj -- "D:\Games\Halo.iso" Z:

# Run the Linux/macOS application from source
dotnet run --project SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj -- ~/Games/Halo.iso ~/mnt/halo

Build output defaults to SimpleXisoDrive/bin/<Configuration>/net11.0-windows/.


Publishing standalone builds

The source builds for Windows x64/ARM64, Linux x64/ARM64 and macOS x64/ARM64; releases ship Windows x64/ARM64 zips, Linux x64/ARM64 packages and an Apple-silicon dmg. Publish with a runtime identifier:

# Framework-dependent (requires .NET 11 Runtime installed)
dotnet publish SimpleXisoDrive/SimpleXisoDrive.csproj -c Release -r win-x64
dotnet publish SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj -c Release -r linux-x64
dotnet publish SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj -c Release -r osx-arm64

# Self-contained (bundles the runtime)
dotnet publish SimpleXisoDrive/SimpleXisoDrive.csproj -c Release -r win-x64 --self-contained true
dotnet publish SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj -c Release -r linux-x64 --self-contained true

# Single-file self-contained executable
dotnet publish SimpleXisoDrive/SimpleXisoDrive.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true

# Windows on ARM
dotnet publish SimpleXisoDrive/SimpleXisoDrive.csproj -c Release -r win-arm64 --self-contained true

Published output lands in SimpleXisoDrive/bin/Release/net11.0-windows/<rid>/publish/ for the Windows app and SimpleXisoDrive.Unix/bin/Release/net11.0/<rid>/publish/ for the Unix app.

The FUSE 3 mount library is consumed from NuGet; it is not packed from this repository:

dotnet add package LibFuseSharp --version 1.0.1

Library source, tests and packing instructions are in https://github.com/purelogiccode/LibFuseSharp. The app pins the package version in SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj.

Release packages use the framework-dependent single-file publish and require the .NET 11 Runtime. Windows and Linux archives also contain ReadMe.md, WhatsNew.md and LICENSE.txt.

Windows zips can be built locally with the helper script:

$version = '1.8.0'
dotnet publish SimpleXisoDrive/SimpleXisoDrive.csproj -c Release -r win-x64 `
    --self-contained false -p:PublishSingleFile=true -o "artifacts/$version/win-x64"
./scripts/package-windows.ps1 -Version $version -Rid win-x64 `
    -BinaryPath "artifacts/$version/win-x64/SimpleXisoDrive.exe" `
    -OutputDirectory SimpleXisoDrive/bin/Release

Linux packages (.AppImage, .tar.gz, .deb, .rpm) must be built on Linux, and the macOS .dmg on Apple silicon:

./scripts/package-linux.sh 1.8.0 linux-x64 publish/linux-x64/SimpleXisoDrive .
./scripts/package-linux.sh 1.8.0 linux-arm64 publish/linux-arm64/SimpleXisoDrive .
./scripts/package-macos.sh 1.8.0 publish/osx-arm64/SimpleXisoDrive .

release.yml builds all packages natively and publishes the canonical assets. Local release files are written to SimpleXisoDrive/bin/Release/; never delete existing bundles in that folder.

The complete copy-paste release routine — version bump, docs refresh, bundle verification, tag, CI monitoring and post-release checks — is in AGENTS.md.


Versioning

The version is defined in the project files and they must be updated together:

File Property
SimpleXisoDrive/SimpleXisoDrive.csproj <AssemblyVersion> and <FileVersion>
SimpleXisoDrive.Core/SimpleXisoDrive.Core.csproj <AssemblyVersion> and <FileVersion>
SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj <AssemblyVersion> and <FileVersion>
SimpleXisoDrive.Tests/SimpleXisoDrive.Tests.csproj <AssemblyVersion> and <FileVersion>
SimpleXisoDrive.Unix.Tests/SimpleXisoDrive.Unix.Tests.csproj <AssemblyVersion> and <FileVersion>

The current version is 1.8.0. The update checker parses the three-part (major.minor.patch) portion of GitHub release tags, so release tags should follow that pattern (for example, release_1.8.0).

The LibFuseSharp package is versioned independently in its own repository (currently 1.0.1) and pinned by the PackageReference in SimpleXisoDrive.Unix. Release the library first, then update that pin; see AGENTS.md.


Project configuration highlights

Setting Value
Target frameworks net11.0-windows (Windows app, core tests), net11.0 (core, Unix app, Unix tests); the external LibFuseSharp package targets net8.0/net9.0/net10.0
Language version 15
Nullable Enabled
Implicit usings Enabled
Output type Exe (console)
Debug symbols Embedded
Application icon icon\xiso.ico (Windows app)

The application intentionally builds as a console executable: the console serves as the UI for mount status and unmount instructions.


Analyzers

The application, the shared core and the LibFuseSharp repository reference the same analyzer versions:

Analyzer Purpose
Meziantou.Analyzer 3.0.344 Best-practice and performance rules
Roslynator.Analyzers 5.0.1 Code quality and style rules

Three rules are disabled in .editorconfig:

Rule Description
MA0004 Use ConfigureAwait
MA0051 Method is too long
MA0015 Specify the parameter name in ArgumentException

Warnings are not treated as errors, but new code should be clean. See Contributing.


Continuous integration

Four GitHub Actions workflows automate build, test, documentation and release (.github/workflows/):

Workflow Trigger What it does
ci.yml Push/PR to master, manual Restores, builds Release, runs the test suite on windows-latest, and uploads the .trx results and Cobertura coverage as artifacts. A second job builds and publishes the Unix app on ubuntu-latest (hosted runners have no FUSE device, so it does not mount). A third job builds the documentation site with the same Jekyll toolchain as Pages.
release.yml release_* tag, manual Verifies the tag against <AssemblyVersion>, runs the suite, and packages win-x64/win-arm64 zips, linux-x64/linux-arm64 AppImage/tar.gz/deb/rpm files, and an osx-arm64 dmg. Creates the GitHub release with those assets.
pages.yml Push to master touching docs/, manual Builds docs/ with the GitHub Pages Jekyll toolchain and deploys the result to the documentation site at https://purelogiccode.github.io/SimpleXisoDrive/.
wiki.yml Push to master touching docs/, manual Regenerates the GitHub wiki from docs/; commits only when the generated pages differ.

Documentation is published from the single docs/ source on every push to master: pages.yml deploys the site and wiki.yml mirrors the pages to the wiki. index.md is the Pages home while Home.md is the wiki home, and _Sidebar.md is the wiki side menu. Both workflows can also be started manually from the Actions tab.

For a fork, enable Pages once with Settings -> Pages -> Source: GitHub Actions, and initialize the wiki (open the Wiki tab and create the first page) so wiki.yml has a repository to push to.

To cut a release:

  1. If the FUSE library changed, release LibFuseSharp first and update the pinned PackageReference in SimpleXisoDrive.Unix/SimpleXisoDrive.Unix.csproj.

  2. Bump <AssemblyVersion>/<FileVersion> in the project files listed above, and update Release History and WhatsNew.md.

  3. Commit and push the version bump.

  4. Tag and push:

    git tag release_1.8.0
    git push origin release_1.8.0
  5. Watch the workflow create the GitHub release with the Windows, Linux and macOS packages attached.

A manual run (workflow_dispatch) of release.yml builds the same packages as artifacts without creating a release. The two commands that must always succeed locally are unchanged:

dotnet build CSharp_SimpleXisoDrive.sln -c Release
dotnet test CSharp_SimpleXisoDrive.sln -c Release

Troubleshooting the build

Symptom Cause / fix
SDK '11.0.0' not found Install the .NET 11 SDK. rollForward allows newer major versions, but the SDK must be at least 11.
Package restore failures Check network/proxy access to NuGet.
MSB3644 reference assemblies not found Install the .NET 11 SDK; do not rely on an older Visual Studio.
Build succeeds but the app exits immediately Dokan is missing at runtime; see Installation.

Clone this wiki locally