G
Guest
I have been developing web apps in Visual Studio 2003, but since the other
developers in my office don't use Visual Studio, I may have to stop too
unless there is an efficient way for them to compile the code outside of
Visual Studio if they need to adjust something I created.
I have been trying to use vbc.exe, but I'm having problems with references
to the DataSet I have created. Multiple pages reference my dataset -
"DataSet1", ... let's say such as:
Me.DataSet11 = New MyProject.DataSet1.
I added: Imports MyProject.DataSet1
to each page as necessary, but vbc.exe returns "Namespace or type 'DataSet1'
for the Imports 'MyProject' cannot be found. (If I try: Imports MyProject
instead, I get "Namespace or type 'MyProject' for the Imports 'MyProject'
cannot be found.)
Whether I add the Imports statements to the pages or not, I get a lot of
messages from vbc.exe like "Type 'MyProject.DataSet1' is not defined."
I thought it might have something to do with the references - /r in vbc.exe,
but of course I can't add MyProject.dll as a reference since it is what I'm
trying to build!
Right now, my vbc.exe command looks like:
vbc.exe /target:library /out:bin/MyProject.dll
/r:System.dll,System.Web.dll,System.Data.dll,System.Drawing.dll,System.XML.dll page1.aspx.vb page2.aspx.vb
(the /r section is actually much longer - I was getting other errors, but
added the .dll files as necessary to clear them up)
Thanks,
Scott Thompson
developers in my office don't use Visual Studio, I may have to stop too
unless there is an efficient way for them to compile the code outside of
Visual Studio if they need to adjust something I created.
I have been trying to use vbc.exe, but I'm having problems with references
to the DataSet I have created. Multiple pages reference my dataset -
"DataSet1", ... let's say such as:
Me.DataSet11 = New MyProject.DataSet1.
I added: Imports MyProject.DataSet1
to each page as necessary, but vbc.exe returns "Namespace or type 'DataSet1'
for the Imports 'MyProject' cannot be found. (If I try: Imports MyProject
instead, I get "Namespace or type 'MyProject' for the Imports 'MyProject'
cannot be found.)
Whether I add the Imports statements to the pages or not, I get a lot of
messages from vbc.exe like "Type 'MyProject.DataSet1' is not defined."
I thought it might have something to do with the references - /r in vbc.exe,
but of course I can't add MyProject.dll as a reference since it is what I'm
trying to build!
Right now, my vbc.exe command looks like:
vbc.exe /target:library /out:bin/MyProject.dll
/r:System.dll,System.Web.dll,System.Data.dll,System.Drawing.dll,System.XML.dll page1.aspx.vb page2.aspx.vb
(the /r section is actually much longer - I was getting other errors, but
added the .dll files as necessary to clear them up)
Thanks,
Scott Thompson