![]() |
VOOZH | about |
dotnet add package FonsecaFramework.Aspire --version 2026.6.18.1
NuGet\Install-Package FonsecaFramework.Aspire -Version 2026.6.18.1
<PackageReference Include="FonsecaFramework.Aspire" Version="2026.6.18.1" />
<PackageVersion Include="FonsecaFramework.Aspire" Version="2026.6.18.1" />Directory.Packages.props
<PackageReference Include="FonsecaFramework.Aspire" />Project file
paket add FonsecaFramework.Aspire --version 2026.6.18.1
#r "nuget: FonsecaFramework.Aspire, 2026.6.18.1"
#:package FonsecaFramework.Aspire@2026.6.18.1
#addin nuget:?package=FonsecaFramework.Aspire&version=2026.6.18.1Install as a Cake Addin
#tool nuget:?package=FonsecaFramework.Aspire&version=2026.6.18.1Install as a Cake Tool
Extensions and helpers for .NET Aspire distributed applications.
FonsecaFramework.Aspire is a .NET 9 library that provides extension methods for the .NET Aspire IDistributedApplicationBuilder to simplify working with SQL Server resources. It supports connecting to existing SQL Server instances, adding SQL Server Docker containers, and registering SqlExecuter instances in the Aspire service defaults pipeline.
dotnet add package FonsecaFramework.Aspire
| Area | Key Classes / Methods |
|---|---|
| Existing SQL Server | AddExistingSqlServer() — register an existing SQL Server instance as an Aspire resource |
| Existing Database | AddExistingSqlDatabase() — register an existing database on a SQL Server resource |
| SQL Server Docker | AddSqlServerDocker() — spin up a SQL Server container with auto-generated passwords |
| Resource Models | ExistingSqlServerResource, ExistingSqlDatabaseResource — Aspire-compatible resource types with connection string expressions |
using FonsecaFramework.Aspire.Mssql;
var builder = DistributedApplication.CreateBuilder(args);
var sqlServer = builder.AddExistingSqlServer(
name: "production-sql",
connectionString: "Server=prod-server;Integrated Security=True;TrustServerCertificate=True;");
var myDatabase = sqlServer.AddExistingSqlDatabase(
name: "my-database",
databaseName: "AppDb");
builder.AddProject<Projects.MyWebApi>("api")
.WithReference(myDatabase);
builder.Build().Run();
using FonsecaFramework.Aspire.Mssql;
var builder = DistributedApplication.CreateBuilder(args);
var sqlServer = builder.AddSqlServerDocker(
name: "dev-sql",
port: 1433);
var database = sqlServer.AddDatabase("appdb");
builder.AddProject<Projects.MyWebApi>("api")
.WithReference(database);
builder.Build().Run();
Copyright 2025 Steven Fonseca / VLR Creations
Licensed under the . You may use this library free of charge, provided you include the required attribution notices. See the file for full terms.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.6.18.1 | 0 | 6/18/2026 |
| 2026.6.13.1 | 102 | 6/13/2026 |
| 2026.6.4.2 | 94 | 6/4/2026 |
| 2026.6.4.1 | 95 | 6/4/2026 |
| 2026.6.3.3 | 102 | 6/4/2026 |
| 2026.6.3.2 | 100 | 6/4/2026 |
| 2026.6.3.1 | 95 | 6/3/2026 |
| 2026.5.21.1 | 102 | 5/22/2026 |
| 2026.5.20.1 | 108 | 5/20/2026 |
| 2026.5.12.1 | 105 | 5/13/2026 |
| 2026.5.11.1 | 101 | 5/11/2026 |
| 2026.5.7.2 | 112 | 5/7/2026 |
| 2026.5.7.1 | 100 | 5/7/2026 |
| 2026.5.6.1 | 92 | 5/6/2026 |
| 2026.5.5.1 | 94 | 5/5/2026 |
| 2026.5.2.1 | 97 | 5/2/2026 |
| 2026.4.30.1 | 109 | 4/30/2026 |
| 2026.4.29.1 | 114 | 4/29/2026 |
| 2026.4.27.1 | 107 | 4/28/2026 |
| 2026.4.22.1 | 100 | 4/22/2026 |