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.HTMLControls,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

 

Reply via email to