Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

compile errors

I am trying out a simple winform application. My file is called:
winforms.cs
I compile like this: csc winform.cs /reference:System.Winforms.dll
I get several errors saysing something about "Referenced classes
'System.WinForms.RichControl' has unknown base class or interface
'System.ComponentModel.(Something)'
Any idea's on what I'm doing wrong?

Adam
[416 byte] By [Adam Miller] at [2007-11-9 18:22:04]
# 1 Re: compile errors
Try this:

csc /target:winexe /reference:System.Winforms.dll winform.cs

"Adam Miller" <amiller78@usa.net> wrote:
>I am trying out a simple winform application. My file is called:
>winforms.cs
>I compile like this: csc winform.cs /reference:System.Winforms.dll
>I get several errors saysing something about "Referenced classes
>'System.WinForms.RichControl' has unknown base class or interface
>'System.ComponentModel.(Something)'
>Any idea's on what I'm doing wrong?
>
>Adam
>
>
Mingyong Yang at 2007-11-11 22:28:19 >
# 2 Re: compile errors
/target:winexe will stop displaying the DOS window, not resolve the
compiling error.

To work out which DLLs you need see the following FAQ:

http://csharpindex.com/default.asp?URL=/Faq/WhichDLLs.asp

You may also need to reference System.DLL.
--
Matt.
C# Index to resources
http://csharpindex.com

"Mingyong Yang" <myang@foxinternet.net> wrote in message
news:39c26491$1@news.dev-archive.com...
>
> Try this:
>
> csc /target:winexe /reference:System.Winforms.dll winform.cs
>
>
>
>
> "Adam Miller" <amiller78@usa.net> wrote:
> >I am trying out a simple winform application. My file is called:
> >winforms.cs
> >I compile like this: csc winform.cs /reference:System.Winforms.dll
> >I get several errors saysing something about "Referenced classes
> >'System.WinForms.RichControl' has unknown base class or interface
> >'System.ComponentModel.(Something)'
> >Any idea's on what I'm doing wrong?
> >
> >Adam
> >
> >
>
Matt Searle at 2007-11-11 22:29:24 >