ViceSharp.Host.Xbox
1.1.0
dotnet add package ViceSharp.Host.Xbox --version 1.1.0
NuGet\Install-Package ViceSharp.Host.Xbox -Version 1.1.0
<PackageReference Include="ViceSharp.Host.Xbox" Version="1.1.0" />
<PackageVersion Include="ViceSharp.Host.Xbox" Version="1.1.0" />
<PackageReference Include="ViceSharp.Host.Xbox" />
paket add ViceSharp.Host.Xbox --version 1.1.0
#r "nuget: ViceSharp.Host.Xbox, 1.1.0"
#:package ViceSharp.Host.Xbox@1.1.0
#addin nuget:?package=ViceSharp.Host.Xbox&version=1.1.0
#tool nuget:?package=ViceSharp.Host.Xbox&version=1.1.0
ViceSharp.Host.Xbox
PLATFORM-CROSS-001 Phase 1: UWP-style Xbox host shell for ViceSharp.
This project is a thin entry-point that boots the shared ViceSharp.Avalonia.App
plus the in-process gRPC host composition from ViceSharp.Host. It contains
no UI of its own; all view models, controls, and host services are inherited
from those two projects so the Xbox build stays bit-for-bit consistent with
the desktop build (per FR-Host-UI-Boundary).
Target framework
The project currently targets plain net10.0 as a workload-available fallback.
The intended long-term target is net10.0-windows10.0.19041.0 (or a newer
UWP/windows-app revision), but the UWP / windows-app SDK workload is not
installed on this build host. Plain net10.0 keeps the project buildable on
this machine while still running on Xbox developer mode via the standard
.NET 10 runtime plus Avalonia.Desktop.
To switch to the Windows-specific UWP target once the workload is available:
- Install the workload, for example:
dotnet workload install windows-app - Edit
ViceSharp.Host.Xbox.csprojand replace<TargetFramework>net10.0</TargetFramework>with<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>. - If the workload requires it, add
<UseUwp>true</UseUwp>and aPackage.appxmanifest(see "Package manifest" below).
Build
From the repository root:
dotnet build ViceSharp.slnx --nologo
For a Release x64 build suitable for sideloading:
dotnet build src/ViceSharp.Host.Xbox/ViceSharp.Host.Xbox.csproj -c Release -p:Platform=x64
The publish output ends up under
src/ViceSharp.Host.Xbox/bin/Release/net10.0/.
Sideload onto an Xbox in developer mode
- Put your Xbox into developer mode (Microsoft Store → Dev Mode Activation).
- Launch the Xbox Device Portal on the console, note the IP address and PIN,
then open the portal in a desktop browser at
https://<console-ip>:11443. - Pair the desktop dev environment with the console using the PIN. Visual Studio also supports this via Debug → Properties → Remote Machine.
- Publish the Xbox host shell. The recommended pipeline once the UWP
workload is in place is:
While the project is still on thedotnet publish src/ViceSharp.Host.Xbox/ViceSharp.Host.Xbox.csproj ` -c Release -p:Platform=x64 -r win10-x64 --self-contained truenet10.0fallback target, drop-p:Platform=x64if it conflicts with the SDK and publish for thewin-x64runtime identifier instead. - Package the publish output into an
.appx(or.msixbundleonce the project carries aPackage.appxmanifest) and upload through the Xbox Device Portal's "Add" workflow under the "My games & apps" page, or useWinAppDeployCmd.exe installfrom a desktop developer command prompt. - Launch ViceSharp from the Xbox dashboard under "Dev home" → "My games & apps".
Package manifest
A Package.appxmanifest is intentionally NOT included in this scaffold
because the UWP / windows-app workload is unavailable on the current build
host: shipping a manifest without the matching workload causes spurious
build errors. Once the workload is installed:
- Add a
Package.appxmanifestnext to this README modelled after the standard UWP template. - Reference it from the csproj with
<AppxPackage>true</AppxPackage>(or via the windows-app project SDK), and add the Xbox-specific<TargetDeviceFamily Name="Windows.Xbox" MinVersion="10.0.19041.0" MaxVersionTested="10.0.22000.0" />entry.
Tests
The scaffold is covered by
tests/ViceSharp.TestHarness/HostShells/XboxHostShellTests.cs:
dotnet test ViceSharp.slnx --filter "FullyQualifiedName~XboxHostShell"
The test asserts the csproj exists, targets net10.0, and references both
ViceSharp.Avalonia and ViceSharp.Host.
| Product | Versions 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. |
-
net10.0
- Avalonia (>= 12.0.5)
- Avalonia.Desktop (>= 12.0.5)
- Avalonia.Fonts.Inter (>= 12.0.5)
- Avalonia.Themes.Fluent (>= 12.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.