Aspire.Milvus.Client
13.3.5-preview.1.26270.6
Prefix Reserved
dotnet add package Aspire.Milvus.Client --version 13.3.5-preview.1.26270.6
NuGet\Install-Package Aspire.Milvus.Client -Version 13.3.5-preview.1.26270.6
<PackageReference Include="Aspire.Milvus.Client" Version="13.3.5-preview.1.26270.6" />
<PackageVersion Include="Aspire.Milvus.Client" Version="13.3.5-preview.1.26270.6" />
<PackageReference Include="Aspire.Milvus.Client" />
paket add Aspire.Milvus.Client --version 13.3.5-preview.1.26270.6
#r "nuget: Aspire.Milvus.Client, 13.3.5-preview.1.26270.6"
#:package Aspire.Milvus.Client@13.3.5-preview.1.26270.6
#addin nuget:?package=Aspire.Milvus.Client&version=13.3.5-preview.1.26270.6&prerelease
#tool nuget:?package=Aspire.Milvus.Client&version=13.3.5-preview.1.26270.6&prerelease
Aspire.Milvus.Client library
Registers a MilvusClient in the DI container for connecting to a Milvus server.
Getting started
Prerequisites
- Milvus server and connection string for accessing the server API endpoint.
Install the package
Install the Aspire Milvus Client library with NuGet:
dotnet add package Aspire.Milvus.Client
Usage example
In the AppHost.cs file of your project, call the AddMilvusClient extension method to register a MilvusClient for use via the dependency injection container. The method takes a connection name parameter.
builder.AddMilvusClient("milvus");
Configuration
The Aspire Milvus Client component provides multiple options to configure the server connection based on the requirements and conventions of your project.
Use a connection string
When using a connection string from the ConnectionStrings configuration section, you can provide the name of the connection string when calling builder.AddMilvusClient():
builder.AddMilvusClient("milvus");
And then the connection string will be retrieved from the ConnectionStrings configuration section:
{
"ConnectionStrings": {
"milvus": "Endpoint=http://localhost:19530/;Key=root:123456!@#$%"
}
}
By default the MilvusClient uses the gRPC API endpoint.
Use configuration providers
The Aspire Milvus Client component supports Microsoft.Extensions.Configuration. It loads the MilvusSettings from configuration by using the Aspire:Milvus:Client key. Example appsettings.json that configures some of the options:
{
"Aspire": {
"Milvus": {
"Client": {
"Key": "root:123456!@#$%"
}
}
}
}
Use inline delegates
Also you can pass the Action<MilvusSettings> configureSettings delegate to set up some or all the options inline, for example to set the API key from code:
builder.AddMilvusClient("milvus", settings => settings.Key = "root:12345!@#$%");
AppHost extensions
In your AppHost project, install the Aspire.Hosting.Milvus library with NuGet:
dotnet add package Aspire.Hosting.Milvus
Then, in the AppHost.cs file of AppHost, register a Milvus server and consume the connection using the following methods:
var milvus = builder.AddMilvus("milvus");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(milvus);
The WithReference method configures a connection in the MyService project named milvus. In the Program.cs file of MyService, the Milvus connection can be consumed using:
builder.AddMilvusClient("milvus");
Additional documentation
- https://github.com/milvus-io/milvus-sdk-csharp
- https://github.com/microsoft/aspire/tree/main/src/Components/README.md
Feedback & contributing
https://github.com/microsoft/aspire
*Milvus and the Milvus logo are used with permission from the Milvus project. All rights reserved by LF AI & Data foundation.
| 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 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
- Google.Protobuf (>= 3.33.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Primitives (>= 10.0.7)
- Milvus.Client (>= 2.3.0-preview.1)
-
net8.0
- Google.Protobuf (>= 3.33.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.26)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Primitives (>= 10.0.7)
- Milvus.Client (>= 2.3.0-preview.1)
-
net9.0
- Google.Protobuf (>= 3.33.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Primitives (>= 10.0.7)
- Milvus.Client (>= 2.3.0-preview.1)
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 | |
|---|---|---|---|
| 13.3.5-preview.1.26270.6 | 36 | 5/21/2026 | |
| 13.3.4-preview.1.26268.8 | 41 | 5/19/2026 | |
| 13.3.3-preview.1.26264.13 | 52 | 5/15/2026 | |
| 13.3.2-preview.1.26263.11 | 48 | 5/14/2026 | |
| 13.3.1-preview.1.26261.7 | 51 | 5/12/2026 | |
| 13.3.0-preview.1.26256.5 | 59 | 5/7/2026 | |
| 13.2.4-preview.1.26224.4 | 63 | 4/24/2026 | |
| 13.2.3-preview.1.26217.6 | 67 | 4/21/2026 | |
| 13.2.2-preview.1.26207.2 | 60 | 4/8/2026 | |
| 13.2.1-preview.1.26180.6 | 73 | 3/31/2026 | |
| 13.2.0-preview.1.26170.3 | 64 | 3/23/2026 | |
| 13.1.3-preview.1.26166.8 | 66 | 3/19/2026 | |
| 13.1.2-preview.1.26125.13 | 82 | 2/26/2026 | |
| 13.1.1-preview.1.26105.8 | 82 | 2/11/2026 | |
| 13.1.0-preview.1.25616.3 | 352 | 12/17/2025 | |
| 13.0.2-preview.1.25603.5 | 267 | 12/4/2025 | |
| 13.0.1-preview.1.25575.3 | 383 | 11/26/2025 | |
| 13.0.0-preview.1.25560.3 | 471 | 11/11/2025 | |
| 9.5.2-preview.1.25522.3 | 384 | 10/23/2025 | |
| 9.5.1-preview.1.25502.11 | 326 | 10/3/2025 |