CommunityToolkit.Aspire.Hosting.SurrealDb 9.8.0

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

CommunityToolkit.Aspire.Hosting.SurrealDb library

Provides extension methods and resource definitions for the .NET Aspire AppHost to support running SurrealDB containers.

Getting started

Install the package

In your AppHost project, install the .NET Aspire SurrealDB Hosting library with NuGet:

dotnet add package CommunityToolkit.Aspire.Hosting.SurrealDb

Usage example

Then, in the Program.cs file of AppHost, add a SurrealDB resource and consume the connection using the following methods:

var db = builder.AddSurrealServer("surreal")
                .AddNamespace("ns")
                .AddDatabase("db");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);

Additional Information

https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-surrealdb

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

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

Version Downloads Last Updated
9.8.0 90 9/26/2025
9.8.0-beta.399 91 9/26/2025
9.8.0-beta.398 92 9/25/2025
9.8.0-beta.397 98 9/25/2025
9.8.0-beta.395 98 9/24/2025
9.8.0-beta.394 101 9/23/2025
9.8.0-beta.393 100 9/23/2025
9.8.0-beta.392 99 9/23/2025
9.8.0-beta.389 242 9/18/2025
9.8.0-beta.388 251 9/16/2025
9.8.0-beta.386 195 9/15/2025
9.8.0-beta.385 199 9/15/2025
9.8.0-beta.384 43 9/13/2025
9.8.0-beta.376 119 9/8/2025
9.8.0-beta.375 52 9/6/2025
9.8.0-beta.373 131 9/5/2025
9.8.0-beta.372 128 9/4/2025
9.8.0-beta.370 120 9/2/2025
9.8.0-beta.364 115 9/1/2025
9.7.2 207 8/29/2025
9.7.2-beta.362 161 8/29/2025
9.7.2-beta.361 166 8/29/2025
9.7.2-beta.360 163 8/29/2025
9.7.2-beta.359 162 8/28/2025
9.7.2-beta.358 159 8/28/2025
9.7.2-beta.357 165 8/28/2025
9.7.1 196 8/27/2025
9.7.1-beta.355 166 8/27/2025
9.7.1-beta.354 165 8/27/2025
9.7.1-beta.353 162 8/27/2025
9.7.1-beta.352 163 8/27/2025
9.7.1-beta.351 166 8/27/2025
9.7.1-beta.348 126 8/14/2025
9.7.1-beta.344 74 8/10/2025
9.7.1-beta.343 200 8/8/2025
9.7.1-beta.342 199 8/7/2025
9.7.1-beta.341 196 8/6/2025
9.7.1-beta.340 186 8/5/2025
9.7.1-beta.339 182 8/5/2025
9.7.0 110 8/1/2025
9.7.0-beta.337 83 8/1/2025
9.7.0-beta.336 92 8/1/2025
9.7.0-beta.335 92 8/1/2025