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.375 22 9/6/2025
9.8.0-beta.373 107 9/5/2025
9.8.0-beta.372 105 9/4/2025
9.8.0-beta.370 111 9/2/2025
9.8.0-beta.364 112 9/1/2025
9.7.2 176 8/29/2025
9.7.2-beta.362 158 8/29/2025
9.7.2-beta.361 162 8/29/2025
9.7.2-beta.360 160 8/29/2025
9.7.2-beta.359 159 8/28/2025
9.7.2-beta.358 156 8/28/2025
9.7.2-beta.357 162 8/28/2025
9.7.1 172 8/27/2025
9.7.1-beta.355 163 8/27/2025
9.7.1-beta.354 162 8/27/2025
9.7.1-beta.353 159 8/27/2025
9.7.1-beta.352 160 8/27/2025
9.7.1-beta.351 163 8/27/2025
9.7.1-beta.348 124 8/14/2025
9.7.1-beta.344 72 8/10/2025
9.7.1-beta.343 198 8/8/2025
9.7.1-beta.342 197 8/7/2025
9.7.1-beta.341 194 8/6/2025
9.7.1-beta.340 184 8/5/2025
9.7.1-beta.339 179 8/5/2025
9.7.0 98 8/1/2025
9.7.0-beta.337 80 8/1/2025
9.7.0-beta.336 90 8/1/2025
9.7.0-beta.335 90 8/1/2025