Skip to content

Gendarme.Rules.Ui.SystemWindowsFormsExecutableTargetRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

SystemWindowsFormsExecutableTargetRule

Assembly: Gendarme.Rules.Ui
Version: git

Description

An executable assembly, i.e. an .exe, refers to the System.Windows.Forms assembly but isn't compiled using -target:winexe. A console window will be created and shown under Windows (MS runtime) when the application is executed which is probably not desirable for a winforms application.

Examples

Bad example:

gmcs swf.cs -pkg:dotnet

Good example:

gmcs swf.cs -pkg:dotnet -target:winexe

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally