Skip to content

Gendarme.Rules.Ui.SystemWindowsFormsExecutableTargetRule(2.10)

Sebastien Pouliot edited this page Jan 22, 2011 · 2 revisions

SystemWindowsFormsExecutableTargetRule

Assembly: Gendarme.Rules.Ui
Version: 2.10

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

Clone this wiki locally