ASP.NET Core by Martin

Run an ASP.NET Core web application

Here are six different ways to run your ASP.NET Core web application:

  1. Visual Studio F5: Simply press F5 in Visual Studio to run your application.
  2. Command Line (dotnet run): Open a terminal and run dotnet run in your project directory.
  3. Publish and Run: Use dotnet publish to create a publish folder, then navigate to bin\{...}\publish and run dotnet YourProject.dll.
  4. IIS: Host your application on IIS for production-level hosting.
  5. Linux Console: Run dotnet YourProject.dll on Linux from the console.
  6. Linux with Supervisor and Nginx: For robust production setups on Linux, use Supervisor to manage your application and Nginx as a reverse proxy.

For more detailed information, check out the guide on 6 different ways to run an asp.net core web application (secretGeek.net)

Comments