I got an asp.net core WebApp project. Now I want to start that web app from another console app.
How do I do that?
I want to reuse all the configuration and DI setup from webapp. Thanks
I got an asp.net core WebApp project. Now I want to start that web app from another console app.
How do I do that?
I want to reuse all the configuration and DI setup from webapp. Thanks
You can use the DOTNET run command from your console app to run the Web App.
dotnet run --project ./projects/proj1/proj1.csproj
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-run?tabs=netcore21