How to Run .NET 10 Web API on Linux with WSL 2 | Full Setup Guide

Опубликовано: 07 Август 2026
на канале: Parvesh
244
5

Learn how to bridge the gap between Windows and Linux for your .NET development. In this video, we build a .NET 10 Web API on Windows and deploy it directly into Ubuntu 24.04 using WSL 2.

What you will learn:
Setting up Ubuntu 24.04 on WSL 2.
Installing the .NET 10 Runtime on Linux.
Publishing a Web API from Windows to the Linux filesystem.
Running apps in "Detached Mode" so they stay alive in the background.

Commands used in this video:
wsl --install -d Ubuntu-24.04
sudo apt install aspnetcore-runtime-10.0
dotnet DemoApi1.dll --urls http://0.0.0.0:5000