Provides extension methods and resource definitions for the Aspire AppHost to support running Meilisearch containers.
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.Meilisearch
Then, in the Program.cs file of AppHost, add a Meilisearch resource and consume the connection using the following methods:
var builder = DistributedApplication.CreateBuilder(args);
var meilisearch = builder.AddMeilisearch("meilisearch");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(meilisearch);
builder.Build().Run();https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-meilisearch