Description
Description
I am running a C# Web API project with an Angular frontend.
When I type the command "dotnet watch run" normally the SPA proxy launches.
When upgrading to SDK 9.0.203 and using the "dotnet watch run" command the SPA Proxy no longer launches.
If I try the "dotnet run" command the SPA Proxy launches as normal.
I am using the Microsoft.AspNetCore.SpaProxy updated to the latest version.
My launchSettings.json is as follows:
{ "profiles": { "Run": { "commandName": "Project", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" }, "launchBrowser": true, "applicationUrl": "https://localhost:8090" } } }
I have had to downgrade back to 9.0.103 so I can get the "dotnet watch run" command working again.
I have been searching online to see if anyone else has reported this issue but I haven't seen any posts yet so thought it best to raise a bug report.
Reproduction Steps
Using this repo https://github.com/rafaelfgx/Architecture, clone it, install packages etc.
Make sure you are using the latest version of the .net SDK.
Type the command "dotnet watch run"
Expected behavior
The expected behaviour is that the SPA proxy launches.
Actual behavior
The actual behaviour is that the SPA proxy does not launch.
Regression?
Yes this worked and still works in SDK 9.0.103
Known Workarounds
The workaround was either to just run "dotnet run" and lose the hot reload, or downgrade.
Configuration
SDK 9.0.203
Windows 11 x64
I have attempted the same on my laptop and my desktop computer and get the same result, this proves that it is not just a local issue.
Other information
No response