I am using the command line to create a VB.NET and ADO.NET
Application. But Imports System.Data and Imports System.Data.SqlClient
cannot be found during compliation.
Can anyone show me how to setup the enviroment?
It would be helpful to see the command line args your using but since I
can't I'll point out something you might not be aware of,
When compiling from the command line, you must explicitly reference the
Microsoft Visual Basic Run-Time Library through the /reference compiler
option. eg., vbc /reference:Microsoft.VisualBasic.dll MyFile.vb
This article can be found:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vblr7/html/vaconvbcompileroptions.asp
If it not working in the IDE then you need to add a reference to them. In
the solution explorer right click on your project and select Add Reference.
In the dialog box select System.Data *I THINK* this needs to be done for
EACH project if its not all ready there.
Let me know,
MP