C# FAQ: Why does my Windows application open a console window each time it is run?

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:FAQs
edit

Why does my Windows application open a console window each time it is run?

When using the command line, compile with /target:winexe rather than /target:exe.

In Visual Studio, check to be sure that the target type in the project properties is set to Windows Application rather than Console Application.


Personal tools