Are you sure that you selected the right Project type ?
WPF .NET Framework :
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have made a C# WPF application, and if I compile it it creates a dll instead of an exe.
I selected the projects property output type to windows application. I can choose console app, but then you get a dos window to open as well alongside the program, and i dont want that.
How do you run the dll anyways? If I type rundll32 filename then it doesnt start...
Are you sure that you selected the right Project type ?
WPF .NET Framework :
Net 6 added support for WPF, so you can now. Build WPF applications with net 6.
Net 6 applications are a dll hosted by net core runtime. dotnet(.exe) is the default. The build will typically create a small exe named after the project that will load and run the dll. With publish you can create a single bundle file that will run.
See single file deployment
https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview