Visual Studio will automatically detect the ports used by the frontend dev server (e.g., Vite on port 5173) and the backend (e.g., Kestrel on port 5000).

Visual Studio Website Templates -

Visual Studio will automatically detect the ports used by the frontend dev server (e.g., Vite on port 5173) and the backend (e.g., Kestrel on port 5000).