ZeroInstall.Services
2.29.3
dotnet add package ZeroInstall.Services --version 2.29.3
NuGet\Install-Package ZeroInstall.Services -Version 2.29.3
<PackageReference Include="ZeroInstall.Services" Version="2.29.3" />
<PackageVersion Include="ZeroInstall.Services" Version="2.29.3" />
<PackageReference Include="ZeroInstall.Services" />
paket add ZeroInstall.Services --version 2.29.3
#r "nuget: ZeroInstall.Services, 2.29.3"
#:package ZeroInstall.Services@2.29.3
#addin nuget:?package=ZeroInstall.Services&version=2.29.3
#tool nuget:?package=ZeroInstall.Services&version=2.29.3
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:
- Pass
RequirementstoISolver.Solve()and getSelections. - Pass
SelectionstoISelectionsManager.GetUncachedImplementations()and get uncachedImplementations. - Pass
Implementations toIFetcher.Fetch(). - Pass
SelectionstoIExecutor.Start().
Sample code for implementing this in various languages:
| Product | Versions 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. |
-
.NETFramework 4.8
- Makaretu.Dns.Multicast (>= 0.27.0)
- NanoByte.SatSolver (>= 0.5.0)
- WindowsFirewallHelper (>= 2.2.0.86)
- ZeroInstall.Archives (>= 2.29.3)
-
net8.0
- Makaretu.Dns.Multicast (>= 0.27.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- NanoByte.SatSolver (>= 0.5.0)
- WindowsFirewallHelper (>= 2.2.0.86)
- ZeroInstall.Archives (>= 2.29.3)
-
net9.0
- Makaretu.Dns.Multicast (>= 0.27.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.18)
- NanoByte.SatSolver (>= 0.5.0)
- WindowsFirewallHelper (>= 2.2.0.86)
- ZeroInstall.Archives (>= 2.29.3)
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 |