Closed jack775544 closed 2 weeks ago
See https://github.com/dotnet/aspire/issues/6221#issuecomment-2408002558, this should be fixed in later builds.
See #6221 (comment), this should be fixed in later builds.
Sounds good. The only thing different from that ticket is that I am also getting this for project resources and the dashboard as well.
Sounds good. The only thing different from that ticket is that I am also getting this for project resources and the dashboard as well.
Can you reproduce this with a new started project?
I just gave it a go on a new project by doing dotnet new aspire-starter
and upgrading it to 9.0.0-rc.1.24511.1.
Shutting down the project worked fine there.
I then added a node project and after that it caused the project resources to not stop correctly. My test repo is here, though it sounds like this problem is pretty well understood at this point https://github.com/jack775544/AspireStopBug
Seems like the same problem. If you want to try out a newer build, you can try:
dotnet new install Aspire.ProjectTemplates::9.0.0-rc2* --force
You'll get new templates with the fix.
You should be able to switch back to the RC1 templates easily as well
@jack775544 Can you confirm that using newer templates fixed the issue for you?
Any tricks to use RC2? Trying to install the templates and getting an error back
@jsheetzmt Do you have the right feeds set up? https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md
I have this for my nuget.config. Also tried https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json (updated dotnet8 to dotnet9)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="aspire" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
<packageSource key="aspire">
<package pattern="Aspire.*" />
<package pattern="Microsoft.Extensions.ServiceDiscovery*" />
</packageSource>
</packageSourceMapping>
</configuration>
dotnet new install Aspire.ProjectTemplates::9.0.0-rc2* --force command isn't working but with the feeds setup, I can at least upgrade the packages using Manage Nuget Packages
However, still have this error when attempting to build: Error (active) MSB4236 The SDK 'Aspire.AppHost.Sdk/9.0.0-rc.2.24519.2' specified could not be found.
@jack775544 Can you confirm that using newer templates fixed the issue for you?
I am out of town without a computer right now but I will be able to test it out next week.
I have attempted to confirm this but I can't upgrade to the rc2 version as described, similar to the others in the thread. To rule out any local config I tried downloading the templates into a dotnet sdk docker container and got the same error.
❯ docker run -it --rm -v .:/app mcr.microsoft.com/dotnet/sdk:8.0 bin/bash
root@d157f277f8f3:/# dotnet nuget add source --name dotnet9 https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json
Package source with Name: dotnet9 added successfully.
root@d157f277f8f3:/# dotnet new install Aspire.ProjectTemplates::9.0.0-rc2* --force
The following template packages will be installed:
Aspire.ProjectTemplates::9.0.0-rc2*
Aspire.ProjectTemplates::9.0.0-rc2* could not be installed, the package does not exist.
For details on the exit code, refer to https://aka.ms/templating-exit-codes#103
root@d157f277f8f3:/#
Try out 9.1.0-*
The instructions have been updated https://github.com/dotnet/aspire/blob/main/docs/using-latest-daily.md
Thanks for the help. I just tried it using version 9.1.0-preview.1.24553.1
and my services are now shutting down correctly.
Thanks for confirming. Closing.
Is there an existing issue for this?
Describe the bug
I have an Aspire project that contains a mix of container resources, executable resources (all running node) and project resources. After testing Aspire 9 preview 1, I have noticed that on shutting down the app host, the non container resources take a considerable time to shut down or in some cases, do not shut down at all. This also includes the dashboard process not shutting down as well.
In my project, I have no persistent resources.
Expected Behavior
After shutting down the app host, all services should be shut down.
Steps To Reproduce
Get-Process *dashboard*
(or the name of any other process being run by AspireGet-Process
again, some of the resources will be stopped but some will remain.Exceptions (if any)
No response
.NET Version info
Anything else?
I have seen this behaviour from running the AppHost from the command line and from Rider.