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

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
 
P

Pablo Villa

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

____________________________________
____________________________________
 

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

Top