Curtis,

My guess is that you'll also have to add a reference to the System.Web.dll
assembly.

Gert

----- Original Message ----- 
From: "Curtis Zarger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 17, 2003 8:50 PM
Subject: [Nant-users] Problems building a web project


> Hi,
>
>
>
> I'm new to NAnt but it seems to be just what I'm looking for!
>
>
>
> In trying to build my first, simple VB.Net-based web project, I started by
> incorporating the references and imports as they were built by VS.Net.  I
> have a few errors that I cannot resolve.  It seems my "imports"
referencing
> is not right.  I am also not clear on how to incorporate .aspx files and
> their dependent .vb files.  Can anyone lend a hand, or maybe post an
example
> build file for a web project?
>
>
>
>
>
> TARGET CODE ------->
>
>     <target name="build">
>
>         <mkdir dir="${build.dir}"/>
>
>         <vbc target="winexe" output="${build.dir}\${basename}.exe"
> debug="${debug}"
>
>
>
imports="Microsoft.VisualBasic,System,System.Collections,System.Data,System.
>
Diagnostics,System.Drawing,System.Web,System.Web.UI,System.Web.UI.HTMLContro
> ls,System.Web.UI.WebControls"
>
>                 optioncompare="text"
>
>                 optionexplicit="true"
>
>                 optionstrict="true"
>
>                 rootnamespace="Test1"
>
>                 removeintchecks="true">
>
>             <sources>
>
>                 <includes name="*.vb"/>
>
>             </sources>
>
>             <references>
>
>                 <includes asis="true" name="System.dll"/>
>
>                 <includes asis="true" name="System.Data.dll"/>
>
>                 <includes asis="true" name="System.Drawing.dll"/>
>
>                 <includes asis="true" name="System.Windows.Forms.dll"/>
>
>                 <includes asis="true" name="System.XML.dll"/>
>
>             </references>
>
>             <arg value="/main:Test1.MainForm"/>
>
>         </vbc>
>
>     </target>
>
>
>
> OUTPUT ----->
>
>
>
> build:
>
>
>
>       [vbc] Compiling 5 files to C:\Inetpub\wwwroot\Test1\build\Test1.exe.
>
>             vbc : error BC30464: Namespace or type 'HTMLControls' in the
> project-level Imports 'System.Web.UI.HTMLControls' cannot be found.
>
>             vbc : error BC30464: Namespace or type 'UI' in the
project-level
> Imports 'System.Web.UI' cannot be found.
>
>             vbc : error BC30464: Namespace or type 'WebControls' in the
> project-level Imports 'System.Web.UI.WebControls' cannot be found.
>
>             vbc : error BC30420: 'Sub Main' was not found in 'Test1'.
>
>             C:\Inetpub\wwwroot\Test1\Global.asax.vb(2) : error BC30466:
> Namespace or type 'SessionState' for the Imports 'System.Web.SessionState'
> cannot be found.
>
>
>
>             Imports System.Web.SessionState
>
>
>
> THX
>
> Curt
>
>
>
>



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to