Closed DovydasNavickas closed 2 weeks ago
dotnet watch is being re-designed to work with aspire. That work is happening in 9.0.200 SDK which is not shipping with .NET 9. This has been fixed in that branch.
You can see the work items for watch and aspire here https://github.com/dotnet/sdk/issues?q=is%3Aissue%20label%3AAspire%20
Is there an existing issue for this?
Describe the bug
I have transitioned the project I have to .NET 9 RC1 and running aspire as usual with
dotnet watch run
resulted in it hanging and not giving the token for the dashboard in the console. As the dashboard itself ran successfully and could be reached on https://localhost:17259, this spiraled into a long ghost hunt. Afterwards, I randotnet watch run --verbose
(should have started with that.... 🫠), I got to the culprit:An exception occurred when attempting to launch a browser
Full logs:
This seems like a pretty important error to print to the developer as I am running in WSL and it simply fails opening the browser.
Also, what's worse,
dotnet run
simply worked and no error happened even with--verbose
.Not sure if this has something to do with .NET 9 RC1 or I just stumbled upon some other bug after updating everything.
Expected Behavior
An error would be printed to the console, when Aspire fails to run open the browser. I would have set
"launchBrowser": false
and called it a night 😄Steps To Reproduce
If this is not reproducible with just running the project with
<TargetFramework>net9.0</TargetFramework>
and .NET 9 RC1, I will investigate further.I used:
Exceptions (if any)
No response
.NET Version info
dotnet --info .NET SDK: Version: 9.0.100-rc.1.24452.12 Commit: 81a714c6d3 Workload version: 9.0.100-manifests.67cd1eb6 MSBuild version: 17.12.0-preview-24422-09+d17ec720d
Runtime Environment: OS Name: debian OS Version: 12 OS Platform: Linux RID: linux-x64 Base Path: /home/devops/.dotnet/sdk/9.0.100-rc.1.24452.12/
.NET workloads installed: Configured to use loose manifests when installing new manifests. [aspire] Installation Source: SDK 9.0.100-rc.1 Manifest Version: 8.2.0/8.0.100 Manifest Path: /home/devops/.dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.0/WorkloadManifest.json Install Type: FileBased
Host: Version: 9.0.0-rc.1.24431.7 Architecture: x64 Commit: static
.NET SDKs installed: 8.0.303 [/home/devops/.dotnet/sdk] 8.0.400 [/home/devops/.dotnet/sdk] 8.0.401 [/home/devops/.dotnet/sdk] 9.0.100-rc.1.24452.12 [/home/devops/.dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 8.0.7 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.8 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 9.0.0-rc.1.24452.1 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.7 [/home/devops/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.8 [/home/devops/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 9.0.0-rc.1.24431.7 [/home/devops/.dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: DOTNET_ROOT [/home/devops/.dotnet]
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download
Anything else?
Aspire.Hosting.AppHost: 8.2.0