ViceSharp.Host.MacOS 1.1.0

dotnet add package ViceSharp.Host.MacOS --version 1.1.0
                    
NuGet\Install-Package ViceSharp.Host.MacOS -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ViceSharp.Host.MacOS" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ViceSharp.Host.MacOS" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="ViceSharp.Host.MacOS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ViceSharp.Host.MacOS --version 1.1.0
                    
#r "nuget: ViceSharp.Host.MacOS, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ViceSharp.Host.MacOS@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ViceSharp.Host.MacOS&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ViceSharp.Host.MacOS&version=1.1.0
                    
Install as a Cake Tool

ViceSharp.Host.MacOS

PLATFORM-CROSS-001 macOS host shell for ViceSharp.

This is the macOS-native shell project. It is intentionally a thin wrapper: the actual UI (views, view-models, gRPC host plumbing) is provided by ViceSharp.Avalonia, and the in-process emulator host composition comes from ViceSharp.Host. This project just supplies the macOS-flavoured entrypoint (Program.cs) and bundle metadata (Info.plist, csproj CFBundle* properties) so we can produce an .app bundle on a macOS build host.

Build

# From the repo root.
dotnet build src/ViceSharp.Host.MacOS/ViceSharp.Host.MacOS.csproj -c Release

The project targets net10.0 (cross-platform), so the build runs on Windows, Linux, and macOS hosts equally. macOS-specific bundling kicks in when you build with a macOS RuntimeIdentifier:

# Apple Silicon.
dotnet publish src/ViceSharp.Host.MacOS/ViceSharp.Host.MacOS.csproj \
    -c Release -r osx-arm64 --self-contained true

# Intel.
dotnet publish src/ViceSharp.Host.MacOS/ViceSharp.Host.MacOS.csproj \
    -c Release -r osx-x64 --self-contained true

Run (macOS host)

dotnet run --project src/ViceSharp.Host.MacOS/ViceSharp.Host.MacOS.csproj -c Release

Prerequisites

  • .NET 10 SDK (dotnet --version >= 10.0.200).
  • For producing an actual macOS .app bundle: a macOS build host. Cross-builds on Windows / Linux produce a portable net10.0 binary but do not codesign or bundle (those steps are macOS-only).
  • The macOS .NET workload is optional for the Phase 1 closeout scaffold: the TFM is the cross-platform net10.0, so no macos workload is required to compile this csproj. The workload becomes relevant when we promote to net10.0-macos later for codesigning and entitlements work.

Bundle id

com.sharpninja.vicesharp.macos

Set in both the csproj (<CFBundleIdentifier>) and Info.plist. Keep them in sync if you ever change it.

What this project does NOT do

  • It does not contain any UI XAML, view-models, or view code; that all lives in ViceSharp.Avalonia and must not be duplicated here.
  • It does not contain any emulator runtime code; that all lives in ViceSharp.Host (composition) and the lower-tier runtime projects (ViceSharp.Core, ViceSharp.Chips, ViceSharp.Architectures, ViceSharp.RomFetch, etc.). This shell only references ViceSharp.Avalonia and ViceSharp.Host, preserving the host boundary enforced by AvaloniaBoundaryTests.

See also

  • src/ViceSharp.Avalonia/ - shared Avalonia UI (App, MainWindow, views, view-models).
  • src/ViceSharp.Host/ - in-process emulator + gRPC composition.
  • tests/ViceSharp.TestHarness/HostShells/MacOSHostShellTests.cs - scaffold smoke test that pins the public surface of this project.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 92 7/11/2026
1.0.5 104 7/10/2026
1.0.4 97 7/10/2026
1.0.2 99 7/8/2026
1.0.1 100 7/8/2026
0.9.0 99 7/2/2026