ChromaDotNet.Aspire.Hosting 0.2.10

Prefix Reserved
Suggested Alternatives

CommunityToolkit.Aspire.Hosting.Chroma

Additional Details

Moved to CommunityToolkit.Aspire.Hosting.Chroma, in the Aspire Community Toolkit. Until Aspire 17 is on nuget.org, an AppHost on Aspire 13 can keep using this package.

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

ChromaDotNet

ChromaDotNet.Aspire.Hosting

Moved to CommunityToolkit.Aspire.Hosting.Chroma, in the Aspire Community Toolkit. This package is deprecated and gets no more releases.

If your AppHost is on Aspire 13, this package still works: CommunityToolkit.Aspire.Hosting.Chroma needs Aspire 17.

Moving

The namespaces and API are the same. Change only the package reference:

dotnet remove package ChromaDotNet.Aspire.Hosting
dotnet add package CommunityToolkit.Aspire.Hosting.Chroma --prerelease

Adds a Chroma container to an Aspire AppHost: the chromadb/chroma:1.5.9 image, with a health check on /api/v2/heartbeat.

Website: chromadotnet.org

dotnet add package ChromaDotNet.Aspire.Hosting
var chroma = builder.AddChroma("chroma")
    .WithDataVolume();

builder.AddProject<Projects.ApiService>("api")
    .WithReference(chroma)
    .WaitFor(chroma);

WithDataVolume and WithDataBindMount mount /data, where Chroma keeps its database.

AddChroma takes an optional port, the host port of the container; without it the port is assigned at run time. The resource gives the connection string Endpoint=http://{host}:{port} and the connection properties Host, Port and Uri. The methods are exported to TypeScript AppHosts too (addChroma, withDataVolume, withDataBindMount), as in the example.

This is the Chroma hosting integration accepted in the Aspire Community Toolkit (CommunityToolkit/Aspire#2219), published by ChromaDotNet until the toolkit shipped it as CommunityToolkit.Aspire.Hosting.Chroma. The API and namespaces are the same, so moving to that package only changes the package reference. Community project, not affiliated with Chroma.

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 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.