Skip to content

Commit fdeb11f

Browse files
authored
Merge branch 'main' into minio_integration
2 parents 73e852c + a85e872 commit fdeb11f

File tree

28 files changed

+570
-47
lines changed

28 files changed

+570
-47
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
pattern: testresults-*
1616

1717
- name: Combine coverage reports
18-
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.5
18+
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.7
1919
with:
2020
reports: "**/*.cobertura.xml"
2121
targetdir: "${{ github.workspace }}/report"

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!-- Versioning -->
3939
<PropertyGroup>
4040
<ToolkitMinorVersion>5</ToolkitMinorVersion>
41-
<ToolkitPatchVersion>0</ToolkitPatchVersion>
41+
<ToolkitPatchVersion>1</ToolkitPatchVersion>
4242
<ToolkitPreviewVersion>preview.1</ToolkitPreviewVersion>
4343

4444
<VersionPrefix>$(AspireMajorVersion).$(ToolkitMinorVersion).$(ToolkitPatchVersion)</VersionPrefix>

docs/diagnostics.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ Once a release of .NET Aspire with that API is available, the API in the .NET As
1313
## CTASPIRE002
1414

1515
Support for loading extensions into SQLite requires either a NuGet package or folder path to the library to be provided, and as a result there is some custom logic to load the extension based on the path or NuGet package. This logic will require some experimenting to figure out edge cases, so the feature for extension loading will be kept as experimental until it is proven to be stable.
16+
17+
## CTASPIRE003
18+
19+
The API is marked for deprecation and will be removed in a future release.

examples/dbgate/CommunityToolkit.Aspire.Hosting.DbGate.AppHost/CommunityToolkit.Aspire.Hosting.DbGate.AppHost.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions\CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions.csproj" IsAspireProjectResource="false" />
1919
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.Redis.Extensions\CommunityToolkit.Aspire.Hosting.Redis.Extensions.csproj" IsAspireProjectResource="false" />
2020
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.SqlServer.Extensions\CommunityToolkit.Aspire.Hosting.SqlServer.Extensions.csproj" IsAspireProjectResource="false" />
21+
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.MySql.Extensions\CommunityToolkit.Aspire.Hosting.MySql.Extensions.csproj" IsAspireProjectResource="false" />
2122
</ItemGroup>
2223

2324

examples/dbgate/CommunityToolkit.Aspire.Hosting.DbGate.AppHost/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@
3232
sqlserver2.AddDatabase("db12");
3333

3434

35+
var mysql1 = builder.AddMySql("mysql1")
36+
.WithDbGate(c => c.WithHostPort(8068));
37+
mysql1.AddDatabase("db13");
38+
mysql1.AddDatabase("db14");
39+
40+
var mysql2 = builder.AddMySql("mysql2")
41+
.WithDbGate();
42+
mysql2.AddDatabase("db15");
43+
mysql2.AddDatabase("db16");
44+
3545
builder.Build().Run();

examples/mysql-ext/CommunityToolkit.Aspire.Hosting.MySql.Extensions.AppHost/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

33
var mysql1 = builder.AddMySql("mysql1")
4-
.WithAdminer(c => c.WithHostPort(8989));
4+
.WithAdminer(c => c.WithHostPort(8989))
5+
.WithDbGate(c => c.WithHostPort(9999));
56
mysql1.AddDatabase("db1");
67
mysql1.AddDatabase("db2");
78

examples/swa/CommunityToolkit.Aspire.StaticWebApps.AppHost/CommunityToolkit.Aspire.StaticWebApps.AppHost.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Sdk Name="Aspire.AppHost.Sdk" Version="$(AspireAppHostSdkVersion)"/>
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="$(AspireAppHostSdkVersion)" />
33

44
<PropertyGroup>
55
<OutputType>Exe</OutputType>
@@ -13,6 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16+
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.NodeJS.Extensions\CommunityToolkit.Aspire.Hosting.NodeJS.Extensions.csproj" IsAspireProjectResource="false" />
1617
<ProjectReference Include="..\CommunityToolkit.Aspire.StaticWebApps.ApiApp\CommunityToolkit.Aspire.StaticWebApps.ApiApp.csproj" />
1718
<ProjectReference Include="..\..\..\src\CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps\CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps.csproj" IsAspireProjectResource="false" />
1819
</ItemGroup>

examples/swa/CommunityToolkit.Aspire.StaticWebApps.AppHost/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
.WithHttpHealthCheck("/health");
55

66
var web = builder
7-
.AddNpmApp("web", Path.Combine(builder.AppHostDirectory, "..", "CommunityToolkit.Aspire.StaticWebApps.WebApp"), "dev")
8-
.WithHttpEndpoint(env: "PORT")
7+
.AddViteApp("web", Path.Combine(builder.AppHostDirectory, "..", "CommunityToolkit.Aspire.StaticWebApps.WebApp"))
8+
.WithNpmPackageInstallation()
99
.WithHttpHealthCheck("/");
1010

11+
#pragma warning disable CTASPIRE003 // Type or member is obsolete
1112
_ = builder
1213
.AddSwaEmulator("swa")
1314
.WithAppResource(web)
1415
.WithApiResource(api);
16+
#pragma warning restore CTASPIRE003 // Type or member is obsolete
1517

1618
builder.Build().Run();

src/CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps library
22

3+
**Deprecation warning**: This library is deprecated and will be removed in a future release, refer to https://github.com/CommunityToolkit/Aspire/issues/698 for more information.
4+
35
Provides extensions methods and resource definitions for the .NET Aspire AppHost to support running Azure Static Web Apps locally using the emulator using the [Azure Static Web App CLI](https://learn.microsoft.com/azure/static-web-apps/local-development).
46

57
## Getting Started

src/CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps/SwaApiEndpointAnnotation.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ namespace Aspire.Hosting.ApplicationModel;
44
/// Represents an annotation for an API endpoint in a Static Web App.
55
/// </summary>
66
/// <param name="resource">The resource builder for resources with endpoints.</param>
7+
[Obsolete(
8+
message: "The SWA emulator integration is going to be removed in a future release.",
9+
error: false,
10+
DiagnosticId = "CTASPIRE003",
11+
UrlFormat = "https://github.com/CommunityToolit/aspire/issues/698")]
712
public class SwaApiEndpointAnnotation(IResourceBuilder<IResourceWithEndpoints> resource) : IResourceAnnotation
813
{
914
/// <summary>

0 commit comments

Comments
 (0)