|
-
Apr 26th, 2002, 03:33 PM
#1
Thread Starter
Member
Command-line Compiler (vbc.exe)
I can't get the command-line compiler to work. I get the following error messages when I use the compiler on a blank Windows Form by typing "vbc.exe Form1.vb" from the Visual Studio .NET Command Prompt (i.e., C:\Program Files\Visual Studio .NET\Common7\Tools\vsvars32.bat):
vbc : error BC30420: 'Sub Main' was not found in 'Form1'.
c:\test01\Form1.vb(3) : error BC30002: Type 'System.Windows.Forms.Form' is not d
efined.
Inherits System.Windows.Forms.Form
~~~~~~~~~~~~~~~~~~~~~~~~~
c:\test01\Form1.vb(18) : error BC30284: sub 'Dispose' cannot be declared 'Overri
des' because it does not override a sub in a base class.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
~~~~~~~
c:\test01\Form1.vb(28) : error BC30002: Type 'System.ComponentModel.IContainer'
is not defined.
Private components As System.ComponentModel.IContainer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\test01\Form1.vb(34) : error BC30002: Type 'System.ComponentModel.Container' i
s not defined.
components = New System.ComponentModel.Container()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\test01\Form1.vb(35) : error BC30456: 'Text' is not a member of 'Form1'.
Me.Text = "Form1"
~~~~~~~
Obviously I'm doing something wrong. Can somebody please help? Also, my ultimate goal is to compile my program using ngen.exe so please let me know if using ngen is any different than vbc.
Thanks to anyone who can help. I've wasted more time than I'd like to admit on this problem. Lance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|