Ask HN: Why is building Windows apps so complicated?
1. Install the .NET 6 SDK: <a href="https://dotnet.microsoft.com/en-us/download/dotnet/6.0" rel="nofollow">https://dotnet.microsoft.com/en-us/download/dotnet/6.0</a><p>2. Terminal ,pick a folder, `dotnet new wpf`<p>3. `dotnet run` and you have an (admittedly empty) hello world app<p>It's telling me it took 1.5s to build the app.<p>Want to publish the app?<p>`dotnet publish -o ./publish -r win-x64` which takes a bit longer as it has to download some runtimes (60 seconds max, then cached). Zip up the resulting folder and ta-da you have an application. Just unzip and run the .exe.<p>If you want a single-file exe (as in completely statically compiled without self-extraction) that's a bit more advanced and requires a few properties in the csproj to configure how to handle native assemblies that expect to exist on disk. If you want it to have no runtime dependencies, add `--self-contained`