Aspire.Hosting.SqlServer 9.3.2

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

Aspire.Hosting.SqlServer library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a SQL Server database resource.

Getting started

Install the package

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

dotnet add package Aspire.Hosting.SqlServer

Usage example

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

var db = builder.AddSqlServer("sql").AddDatabase("db")

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

Additional documentation

https://learn.microsoft.com/dotnet/aspire/database/sql-server-component https://learn.microsoft.com/dotnet/aspire/database/sql-server-entity-framework-component

Feedback & contributing

https://github.com/dotnet/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 was computed.  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 (9)

Showing the top 5 NuGet packages that depend on Aspire.Hosting.SqlServer:

Package Downloads
Aspire.Hosting.Azure.Sql

Azure SQL Database resource types for .NET Aspire.

CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects

An Aspire hosting integration capable of deploying SQL Server Database Projects as part of your AppHost.

FonsecaFramework.Aspire

Collection of classes and extensions for .NET Aspire

CommunityToolkit.Aspire.Hosting.SqlServer.Extensions

A .NET Aspire integration for extending sqlserver hosting.

EAVFramework.Extensions.Aspire.Hosting

Aspire Hosting package for EAVFramework

GitHub repositories (12)

Showing the top 12 popular GitHub repositories that depend on Aspire.Hosting.SqlServer:

Repository Stars
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
DuendeSoftware/products
The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core
collinbarrett/FilterLists
:shield: The independent, comprehensive directory of filter and host lists for advertisements, trackers, malware, and annoyances.
dotnet/aspire-samples
CommunityToolkit/Aspire
A community project with additional components and extensions for .NET Aspire
mehmetozkaya/Design-Microservices-Architecture-with-Patterns-Principles
Design Microservices Architecture with Patterns & Principles. Design Microservices Architecture with Design Patterns, Principles and the Best Practices. How to handle millions of request with designing system for high availability, high scalability, low latency, and resilience to network failures on distributed microservices.
rstropek/Samples
platformplatform/PlatformPlatform
A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
FormCms/FormCms
Open-source headless CMS built with ASP.NET Core (C#) and React, featuring REST APIs, GraphQL, and a GrapesJS page designer.
alex289/CleanArchitecture
Sample .NET 9 API project including Clean Architecture principles, Onion Architecture, MediatR, and Entity Framework with unit and integration tests using xUnit
SSWConsulting/SSW.CleanArchitecture
SSW Clean Architecture Template
marinasundstrom/YourBrand
Prototype enterprise system for e-commerce and consulting services