I have a solution that consists of a console based app (webApi) .Net 7 and an Angular 14 web app. In the solution Start up I have selected Multiple projects and have both set to 'start' with the WebApi project being the first to start. When I run the solution, the Angular loads and runs ok, but when I try and go to my API Swagger page, it fails to load. If I set the solution to single startup and use my WebApi project, I can reach my swagger page.
My angular project launches on port 4200, whilst swagger when it loads on a single project startup is on port 7095.
if I load each project into a seperate instance of VS 2022 and run them individually then my webApi project runs correctly and gives me my swagger page, additionally when I run the Angular front end project, it successfully reaches an end point on my webApi project and returns my expected results.
So I'm baffled as to why they will not run in a single solution.
Anybody have any Ideas why both will not run together, I've tried numerous settings based on answers against earlier versions of VS but none have worked. I'm running the app on Windows 11 pro in a Hyper-V environment with Edge as the browser.