Run .NET MAUI Windows app from command line @JFLHV
Run .NET MAUI Windows app from command line  @JFLHV
Uploaded October 2025 | Updated November 2026, 1 day ago
Steps to setup, build and run C# .NET MAUI Windows apps from CLI.

Install .NET SDK version:
winget install Microsoft.DotNet.SDK.8

Install latest .NET SDK version:
winget install Microsoft.DotNet.SDK

Install maui workload (for active .NET SDK):
dotnet workload install maui

Check active .NET SDK:
dotnet --version

Check .NET SDKs installed:
dotnet --list-sdks

Check installed workloads:
dotnet workload list

New maui project:
dotnet new maui

New maui project with framework option:
dotnet new maui -f net8.0

Build command (unpackaged):
dotnet build -f net8.0-windows10.0.19041.0 -c Debug -p:WindowsPackageType=None

launchSettings.json to run without profile warning:
{
"profiles": {
"Windows Machine": {
"commandName": "MsixPackage",
"nativeDebugging": false
},
"Default": {
"commandName": "Project"
}
}
}


To change active .NET SDK in CLI, create a global.json file and
place it in current CLI directory with the full .NET version.
Then dotnet --version should show it as the active version.
{
"sdk": {
"version": "6.0.428"
}
}
Run .NET MAUI Windows app from command lineSearch for multiple file types Windows ExplorerOpen hard drive to remove data diskZoom Effect in VSDC Free Video EditorChange duration of freeze frame in iMovie macOSiMovie - Creating a custom timerExport iMovie vertical videos in HD on Mac5 star rating green screeniMovie zoom in and out smoothly on MacC# - Simulate keystrokes with SendInput (codeproject implementation)Fading circle green screen overlayCast locked files from Google Pixel Private Space
JFLHV |

Run .NET MAUI Windows app from command line

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER