ZeroInstall.Services 2.29.3

dotnet add package ZeroInstall.Services --version 2.29.3
                    
NuGet\Install-Package ZeroInstall.Services -Version 2.29.3
                    
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="ZeroInstall.Services" Version="2.29.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZeroInstall.Services" Version="2.29.3" />
                    
Directory.Packages.props
<PackageReference Include="ZeroInstall.Services" />
                    
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 ZeroInstall.Services --version 2.29.3
                    
#r "nuget: ZeroInstall.Services, 2.29.3"
                    
#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 ZeroInstall.Services@2.29.3
                    
#: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=ZeroInstall.Services&version=2.29.3
                    
Install as a Cake Addin
#tool nuget:?package=ZeroInstall.Services&version=2.29.3
                    
Install as a Cake Tool

ZeroInstall.Services

Core Zero Install services for solving dependencies, downloading implementations, executing apps, etc.

Zero Install is a decentralized cross-platform software installation system. This package is part of the .NET implementation of Zero Install. Zero Install itself is built upon this API. You can use the API to integrate Zero Install features into your own application.

Dependency injection

The ServiceProvider class provides instances of various services. You can think of it as a hard-coded dependency injection container. We use this instead of a runtime DI system to avoid the performance impact of reflection, keeping the cold-start time short. This is important so that starting a cached program with 0install run does not add a significant overhead when compared to launching it directly.

To instantiate the service provider you need to provide the constructor with an ITaskHandler. You should use exactly one instance of the service provider per user request to ensure consistent state during execution. Rather than instantiating the service provider class, another pattern used in the Zero Install code-base is to inherit from it.

You can also use the .AddZeroInstall() extension method for IServiceCollection to replace the service provider with .NET's built-in DI framework.

Sample use-case

A simplified version of the 0install run logic can be implemented using the Zero Install services as follows:

  1. Pass Requirements to ISolver.Solve() and get Selections.
  2. Pass Selections to ISelectionsManager.GetUncachedImplementations() and get uncached Implementations.
  3. Pass Implementations to IFetcher.Fetch().
  4. Pass Selections to IExecutor.Start().

Sample code for implementing this in various languages:

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ZeroInstall.Services:

Package Downloads
ZeroInstall.Commands

Command-line interface for Zero Install (both an actual CLI and a library for building other clients)

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ZeroInstall.Services:

Repository Stars
0install/0install-win
Windows version of Zero Install
Version Downloads Last Updated
2.29.3 50 8/6/2026
2.29.2 140 7/26/2026
2.29.1 152 6/26/2026
2.29.0 148 5/18/2026
2.28.7 145 5/6/2026
2.28.6 132 5/2/2026
2.28.5 154 4/16/2026
2.28.4 183 2/16/2026
2.28.3 176 2/1/2026
2.28.2 162 1/24/2026
2.28.1 786 12/2/2025
2.28.0 299 9/8/2025
2.27.8 351 8/28/2025
2.27.7 286 8/18/2025
2.27.6 280 8/12/2025
2.27.5 368 8/5/2025
2.27.4 265 7/31/2025
2.27.3 226 7/29/2025
2.27.2 637 7/23/2025
2.27.1 622 7/21/2025
Loading failed