|
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?
BUILD CODE * * * * * * * * * * * * * * * * * * <?xml version="1.0"?>
<project name="Test1" default="run">
<property name="basename" value="Test1"/> <property name="debug" value="true"/> <property name="build.dir" value="build"/>
<target name="build"> <mkdir dir="${build.dir}"/> <vbc target="library" output="${build.dir}\${basename}.dll" debug="${debug}" optioncompare="text" optionexplicit="true" optionstrict="true" rootnamespace="Test1" removeintchecks="true"> <references basedir="${build.dir}" failonempty="false"> <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.Web.dll"/> <includes asis="true" name="System.XML.dll"/> <includes name="*.dll"/> </references> <sources> <includes name="*.vb"/> </sources> <resources basedir="." failonempty="true"> <includes name="*.resx" /> </resources> </vbc> </target>
<target name="run" depends="build"> <!-- http://localhost/Test1/WebForm1.aspx--> <exec program="iexplore.exe" /> <!-- <exec program="${basename}.exe" basedir="${build.dir}"/> --> </target> </project>
THX
Curt
|
- RE: [Nant-users] RE: Problems building web project Curtis Zarger
