Curt, my experience with CSC seems to be echoed by yours with VBC à the command line compilers are not very smart about intuiting namespaces and sorting out namespace collisions.  I'll bet the same code compiles just fine in VS.NET.  I believe the problem you're experiencing is in the code, not in the references section of your build script.  Try fully qualifying the namespace to EventArgs in the method signature, ByVal e System.EventArgs, or putting the VB-equivalent of using System; at the top of your global.asax.vb file.  (Is it Imports System perhaps?  Sure looks odd with no punctuation. :)  If that doesn't work, see if you can get VBC to compile your files from the command line without using NAnt...  Always happy to help.  Who knows whether you'll be my boss next year or not?  Heh.

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curtis Zarger
Sent: Tuesday, November 18, 2003 8:06 AM
To: [EMAIL PROTECTED]
Cc: Curtis Zarger
Subject: [Nant-users] RE: Problems building web project

 

Thxs to Dave Reed and Gert Driesen for the help, I'm getting closer.  It seems I took too much of the WindowsForms example to build my web project (1. vbc target should be "library" for web apps, not "exe". 2. imports section is handled by the 'references includes' entries.  3. System.Windows.Forms.dll 'include reference' is replaced by System.Web.dll)

 

Anyway, I'm still left with a missing reference to EventArgs, which is used in the global.asax.

            C:\Inetpub\wwwroot\Test1\Global.asax.vb(31) : error BC30002: Type 'EventArgs' is not defined.

                Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

I have an include of System.dll, which the documentation says is it's namespace.  Does anyone have an idea what I'm still missing?

[snip]

Reply via email to