compiler error: vbc : Command line error BC2001 : file 'system.drawing.dll,' could not be found

  • Thread starter Thread starter Pablo Villa
  • Start date Start date
P

Pablo Villa

I'm trying to compile a simple vb file from a Quick Tutorial
This sample contains three imports:
Imports System
Imports System.Drawing
Imports System.Windows.Forms

The command line is :
vbc hellogui.vb /reference:system.dll, system.drawing.dll,
system.windows.forms.dll /target:winexe

The compiler says:
vbc : Command line error BC2001 : file 'system.drawing.dll,' could not
be found
vbc : Command line error BC2001 : file 'system.windows.forms.dll,' could
not be found

I can see drawing and windows.forms assemblies in the gac list
(gacutil.exe -l).

why the compiler does not find those dll files ?

thanks for your help
pablo
 
Thanks for your help Suzanne.
I have the path to the .dll folder, but the problem is not that.

The problem was the spaces between references (the space after the ,)

The bad command line is :
vbc hellogui.vb /reference:system.dll, system.drawing.dll,
system.windows.forms.dll /target:winexe


The right command line is :
vbc hellogui.vb
/reference:system.dll,system.drawing.dll,system.windows.forms.dll
/target:winexe


have a nice day
pablo

____________________________________
____________________________________
 
Back
Top