Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
Aspire is now configured to keep SQL Server alive between debug sessions using the new Aspire 9 .WithLifetime(ContainerLifetime.Persistent), significantly improving secondary startup.
Unfortunately, Aspire does not seem to release ports immediately upon shutdown, requiring 10 seconds to a minute before the AppHost can restart. To mitigate this issue temporarily, logic has been added to kill any Developer Control Pane processes (dcpctrl) from previous sessions when starting the AppHost, preventing conflicts and strange errors. For more details, see this issue: https://github.com/dotnet/aspire/issues/6704.
The SPA generation and index.html caching strategy have been updated to align with the new Aspire startup behavior during debugging.
The AppGateway no longer launches automatically when starting Aspire AppHost, as it needs a moment to be ready.
Additionally, a bug has been resolved where the frontend incorrectly used the old platformplatform.pfx certificate instead of localhost.pfx.
Lastly, a fix for a duplicated dotnet dotnet issue in the README has been applied.
Checklist
[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[x] I have updated the documentation, if necessary
Summary & Motivation
Aspire is now configured to keep SQL Server alive between debug sessions using the new Aspire 9
.WithLifetime(ContainerLifetime.Persistent)
, significantly improving secondary startup.Unfortunately, Aspire does not seem to release ports immediately upon shutdown, requiring 10 seconds to a minute before the AppHost can restart. To mitigate this issue temporarily, logic has been added to kill any Developer Control Pane processes (
dcpctrl
) from previous sessions when starting the AppHost, preventing conflicts and strange errors. For more details, see this issue: https://github.com/dotnet/aspire/issues/6704.The SPA generation and
index.html
caching strategy have been updated to align with the new Aspire startup behavior during debugging.The AppGateway no longer launches automatically when starting Aspire AppHost, as it needs a moment to be ready.
Additionally, a bug has been resolved where the frontend incorrectly used the old
platformplatform.pfx
certificate instead oflocalhost.pfx
.Lastly, a fix for a duplicated
dotnet dotnet
issue in the README has been applied.Checklist