|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB.NET with ADO.NET compilation error.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? =?Utf-8?B?S2Ft?= <K**@discussions.microsoft.com> wrote in
news:A16E02C5-335E-493E-B2EA-95AAB37EF8F6@microsoft.com: It would be helpful to see the command line args your using but since I > 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? > 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 I look at it before, but I don't know how to add the reference under command
line. Can you give me more information on it? Show quoteHide quote "MeltingPoint" wrote: > =?Utf-8?B?S2Ft?= <K**@discussions.microsoft.com> wrote in > news:A16E02C5-335E-493E-B2EA-95AAB37EF8F6@microsoft.com: > > > 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 > Especially for ADO.NET, How can I add the reference under command line
Show quoteHide quote "MeltingPoint" wrote: > =?Utf-8?B?S2Ft?= <K**@discussions.microsoft.com> wrote in > news:A16E02C5-335E-493E-B2EA-95AAB37EF8F6@microsoft.com: > > > 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 > =?Utf-8?B?S2Ft?= <K**@discussions.microsoft.com> wrote in
news:BEDD50E9-478E-4BDC-8855-78DFD593DBD7@microsoft.com: http://msdn.microsoft.com/library/default.asp?url=/library/en-> Especially for ADO.NET, How can I add the reference under command line us/vblr7/html/vaconvbcompileroptions.asp There is no command line for ADO. Your either using vb,c#,c++,j# or some other language. The article above shows you how to use the command line to compile with vbc. You need to include much more info then your previous posts if you want a good answer. I still don't know if you've even got this program running in the IDE yet. If not, then problem is there, not the command line. Otherwise, if it is running in the IDE then yes, you need help at the command line. But since I'm not a mind reader... MP
SqlDateTime.MinValue, SqlDateTime.MaxValue: WATCH OUT!
IO function in Vb.Net slower than in Vb6.0 New Problem with timers ComboBox needs help CurrencyManager Question Dataset problem My Threading Timer Doesn't Fire Unshare an Excel sheet with VB.Net VB Threading issues How to restore/recreate .RESX file? |
|||||||||||||||||||||||