CommunityToolkit.Aspire.Hosting.SurrealDb 9.7.2

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.SurrealDb --version 9.7.2
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.SurrealDb -Version 9.7.2
                    
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.7.2" />
                    
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.7.2" />
                    
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.7.2
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.SurrealDb, 9.7.2"
                    
#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.7.2
                    
#: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.7.2
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.SurrealDb&version=9.7.2
                    
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-beta.389 162 9/18/2025
9.8.0-beta.388 179 9/16/2025
9.8.0-beta.386 183 9/15/2025
9.8.0-beta.385 187 9/15/2025
9.8.0-beta.384 41 9/13/2025
9.8.0-beta.376 117 9/8/2025
9.8.0-beta.375 49 9/6/2025
9.8.0-beta.373 129 9/5/2025
9.8.0-beta.372 126 9/4/2025
9.8.0-beta.370 119 9/2/2025
9.8.0-beta.364 114 9/1/2025
9.7.2 183 8/29/2025
9.7.2-beta.362 160 8/29/2025
9.7.2-beta.361 165 8/29/2025
9.7.2-beta.360 162 8/29/2025
9.7.2-beta.359 161 8/28/2025
9.7.2-beta.358 158 8/28/2025
9.7.2-beta.357 164 8/28/2025
9.7.1 175 8/27/2025
9.7.1-beta.355 165 8/27/2025
9.7.1-beta.354 164 8/27/2025
9.7.1-beta.353 161 8/27/2025
9.7.1-beta.352 162 8/27/2025
9.7.1-beta.351 165 8/27/2025
9.7.1-beta.348 125 8/14/2025
9.7.1-beta.344 73 8/10/2025
9.7.1-beta.343 199 8/8/2025
9.7.1-beta.342 198 8/7/2025
9.7.1-beta.341 195 8/6/2025
9.7.1-beta.340 185 8/5/2025
9.7.1-beta.339 181 8/5/2025
9.7.0 99 8/1/2025
9.7.0-beta.337 82 8/1/2025
9.7.0-beta.336 91 8/1/2025
9.7.0-beta.335 91 8/1/2025