How to determine if a Winforms application is a WPF application by looking at project properties

When I look at the project properties in Visual Studio for my specific project, the Output Type field appears, which talks about the Windows application. Does this automatically tell me that this is a WinForms application? I am trying to find a way to determine immediately if the project is a Winforms application. Yes, I can look at the files and determine by looking at the forms. But I wonder if there is a more obvious way to determine this by simply looking at the properties of the project.

Another reason I ask is that when I look at the properties of a WPF application project, the Output Type is also a Windows application. A way to determine if this is a WPF application is looking for XAML files. So, is there an easier way to determine what type of application it relates to project properties?

+7
visual-studio-2010
source share
1 answer

You can determine which meetings the project refers to. Does it reference assemblies under System.Windows.Forms ? If so, this is WinForms. If it refers only to namespaces below System.Windows , except for System.Windows.Forms , then this is WPF.

Check the type of the main form - is it System.Windows.Forms.Form ? If so, this is a WinForms project. If this is a System.Windows.Window , then this is WPF.

+7
source share

All Articles