I'm am trying to create a WebAPI backend that ties in with a decoupled JavaScript Framework powered website, but I'm unsure of how I launch both with ease at the same time using Visual Studio.
I would like it so that I can click the debug button in Visual Studio, and it will then launch two ASP.NET Core projects, each with a Startup class, under two separate ports in IIS Express, and have it so that I can step through both projects at the same time.
At the moment, the only way I see of making this possible is by writing a lot of boilerplate code.
I think this is a Visual Studio problem more than it is a .NET Core problem, but I think the same applies to Visual Studio code, so it may make sense to solve this problem in code, rather than updating Visual Studio to support such a set up.
I'm am trying to create a WebAPI backend that ties in with a decoupled JavaScript Framework powered website, but I'm unsure of how I launch both with ease at the same time using Visual Studio.
I would like it so that I can click the debug button in Visual Studio, and it will then launch two ASP.NET Core projects, each with a Startup class, under two separate ports in IIS Express, and have it so that I can step through both projects at the same time.
At the moment, the only way I see of making this possible is by writing a lot of boilerplate code.
I think this is a Visual Studio problem more than it is a .NET Core problem, but I think the same applies to Visual Studio code, so it may make sense to solve this problem in code, rather than updating Visual Studio to support such a set up.
Apologies if this functionality does already exist, I did spend a considerable amount of time looking for solutions and the best I found was: https://www.strathweb.com/2017/04/running-multiple-independent-asp-net-core-pipelines-side-by-side-in-the-same-application/
Which I feel is close, but a lot of coding is involved, and is not exactly what I was wanting.
In essence I'd like to spin up two processes, one for each app, each under a different port.
We could even take this one step further and allow any number of processes to be launched at the same time.