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
# 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
>
>
# 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
> >
> >
>