WebForms compilation

  • Thread starter Thread starter Pink
  • Start date Start date
P

Pink

Hi

Windows forms are perfectly running from .

Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
but i have problem compiling WinForms from console
is that Winforms can be compiled from vs.net only

Thanks
 
You have to reference all the files that you have imported
in your code via the "using" keyword

For example while compiling a simple Winform application,
you need to reference System.dll, System.WinForms.dll,
Microsoft.Win32.Interop.dll, and System.Drawing.dll.

Example:
csc /R:System.DLL /R:System.WinForms.DLL /R:System.Drawing.
DLL /R:Microsoft.Win32.InterOp.DLL /out:%HelloWorldWin.exe
HelloWorldWin.cs
 
You have to reference all the files that you have imported
in your code via the "using" keyword

For example while compiling a simple Winform application,
you need to reference System.dll, System.WinForms.dll,
Microsoft.Win32.Interop.dll, and System.Drawing.dll.

Example:
csc /R:System.DLL /R:System.WinForms.DLL /R:System.Drawing.
DLL /R:Microsoft.Win32.InterOp.DLL /out:%HelloWorldWin.exe
HelloWorldWin.cs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top