Visual Studio 2019 use IIS instead of IIS Express code example
Example: Run project in visual studio with iis express
In the solution folder view:
- Right click on your website/ web app
- Click on "Set as Startup Project"
- Configure as needed (IIS Local as default)