Description
With #11398 the OutputType
a user explicitly sets in his projects is ignored, except when he sets DisableWinExeOutputInference
.
This is not acceptable and was not asked for by the community.
#11398 was not discussed and the feedback given there was simply ignored.
We now have a very, very confusing behavior where the users explicit choice of setting OutputType
to exe
is completely ignored.
Please see the following issues for reference:
- UseWindowsForms='true' with OutputType='Exe' produces GUI instead of CUI executable #13331
- Can't (easily) build a Windows console app that accesses the clipboard #13624
- Wpf Application switches to WinExe, not only in Net5, also in a 4.6.1 wpf#4314
- WPF .NET Core - Console Application doesn't open console wpf#4138
- https://developercommunity2.visualstudio.com/t/WPF-NET-Core---Console-Application-does/1289479
There wasn't even an explanation why this should be changed in the first place.
The reasoning in the documentation at https://docs.microsoft.com/de-de/dotnet/core/compatibility/windows-forms/5.0/automatically-infer-winexe-output-type states "It's assumed that most users don't want a console window to open when a WPF or Windows Forms app is executed".
May i ask who assumes this because of which issues?
Was this requested by someone? #11398 did not mention any users/issues identifying this as an issue.