SharpCoreDB.Aspire.Hosting
2.0.0.3
See the version list below for details.
dotnet add package SharpCoreDB.Aspire.Hosting --version 2.0.0.3
NuGet\Install-Package SharpCoreDB.Aspire.Hosting -Version 2.0.0.3
<PackageReference Include="SharpCoreDB.Aspire.Hosting" Version="2.0.0.3" />
<PackageVersion Include="SharpCoreDB.Aspire.Hosting" Version="2.0.0.3" />
<PackageReference Include="SharpCoreDB.Aspire.Hosting" />
paket add SharpCoreDB.Aspire.Hosting --version 2.0.0.3
#r "nuget: SharpCoreDB.Aspire.Hosting, 2.0.0.3"
#:package SharpCoreDB.Aspire.Hosting@2.0.0.3
#addin nuget:?package=SharpCoreDB.Aspire.Hosting&version=2.0.0.3
#tool nuget:?package=SharpCoreDB.Aspire.Hosting&version=2.0.0.3
SharpCoreDB.Aspire.Hosting
.NET Aspire hosting integration for the SharpCoreDB network server container image
(ghcr.io/mpcoredeveloper/sharpcoredb-server).
Quick start
var builder = DistributedApplication.CreateBuilder(args);
var db = builder.AddSharpCoreDB("db")
.WithServerContainer()
.WithImageTag("2.0.0.3")
.WithJwtSecret("replace-with-a-secret-of-at-least-32-characters");
builder.Build().Run();
The server container exposes two HTTPS endpoints (TLS 1.2+ is enforced, plain HTTP is not supported):
| Endpoint name | Container port | Purpose |
|---|---|---|
grpc |
5001 | Primary gRPC protocol (HTTP/2) |
https |
8443 | HTTPS REST API + /health |
The resource implements IResourceWithConnectionString; the connection string points at the
grpc endpoint (Host=…;Port=…;SSL=True).
Extension methods
AddSharpCoreDB(name)— adds the container resource.WithServerContainer()— documentation alias for the container-based hosting intent.WithJwtSecret(secret)— forwardsServer__Security__JwtSecretKey(min. 32 chars).WithImageTag(tag)— pick a published image tag instead oflatest.
Prerequisites
- The image is published to
ghcr.io/mpcoredeveloper/sharpcoredb-serverby the repository Docker workflow on everyv*tag (linux/amd64+linux/arm64).
Development notes (TLS)
In local Aspire development the container keeps enforcing TLS. Trust the Aspire development
certificate in the consuming app, or connect over the Aspire network with certificate
validation disabled for the grpc endpoint. See
docs/server/ASPIRE_INTEGRATION.md
for the full guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Aspire.Hosting (>= 13.5.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SharpCoreDB.Aspire.Hosting:
| Package | Downloads |
|---|---|
|
SCDMS.Aspire.Hosting
.NET Aspire hosting integration for the SCDMS web studio - registers the SCDMS container and links it to a SharpCoreDB server container over gRPC |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0-RC.3 | 37 | 9/17/2026 |
| 2.0.0.3 | 104 | 9/12/2026 |
| 2.0.0.2 | 155 | 9/5/2026 |
v2.0.0.3 (2026-09-05): first .NET Aspire hosting package for SharpCoreDB.Server - container image ghcr.io/mpcoredeveloper/sharpcoredb-server with HTTPS gRPC (5001) and HTTPS REST API (8443) endpoints. Full details: https://github.com/MPCoreDeveloper/SharpCoreDB/blob/master/docs/server/ASPIRE_INTEGRATION.md