I'm trying to get a simple ConsoleApplication built.
compile.executables:
[echo] visualstudio.project.ConsoleApplication1.assemblyname
[echo] visualstudio.project.ConsoleApplication1.assemblyname
[vbc] Compiling 1 files to
C:\dev\CustomerCentricity\foo\build\bin\ConsoleApplication1.exe
C:\dev\CustomerCentricity\foo\projects\ConsoleApplication1\src\Module1.vb(8) : error
BC30451: Name 'Console'
is not declared.
Console.WriteLine("yup")
~~~~~~~
BUILD FAILED
the build file seems to want the System.dll....
is there a clean way to put this so that i dont' have to hard code a reference to the
System.dll....
<project default="all" basedir=".">
<!-- project specific attributes -->
<property name="visualstudio.library.projects" value="Core, CoreTests"/>
<property name="visualstudio.executable.projects" value="ConsoleApplication1"/>
<property name="visualstudio.test.projects" value="CoreTests"/>
<property name="visualstudio.project.Core.assemblyname"
value="SolutionProposal"/>
<property name="visualstudio.project.CoreTests.assemblyname"
value="SolutionProposalCoreTests"/>
<!-- attribute generic to all projects -->
<property name="build.bin.dir" value="build/bin"/>
<target name="all" depends="clean, externallib, compile, test"/>
<target name="clean">
<delete dir="${build.bin.dir}" failonerror="false"/>
</target>
<target name="externallib">
<mkdir dir="${build.bin.dir}"/>
<copy todir="${build.bin.dir}">
<fileset basedir="externallib">
<includes name="*.dll"/>
</fileset>
</copy>
</target>
<target name="compile" depends="compile.libraries, compile.executables"/>
<target name="compile.libraries" depends="externallib">
<mkdir dir="${build.bin.dir}"/>
<!-- iterate over all the projects -->
<foreach item="String" in="${visualstudio.library.projects}" delim=","
trim="Both" property="visualstudio.project">
<!-- get the assembly name -->
<property name="visualstudio.assembly.name.property"
value="visualstudio.project.${visualstudio.project}.assemblyname"/>
<property name="visualstudio.assembly.name"
value="${visualstudio.assembly.name.property}"/>
<echo>${visualstudio.assembly.name.property}</echo>
<echo>${visualstudio.assembly.name}</echo>
<!-- create the target output -->
<vbc target="library"
output="${build.bin.dir}/${visualstudio.project}.dll">
<references>
<includes name="${build.bin.dir}/*.dll"/>
</references>
<sources
basedir="projects/${visualstudio.project}/src">
<includes name="**/*.vb"/>
</sources>
</vbc>
</foreach>
</target>
<target name="compile.executables" depends="externallib">
<mkdir dir="${build.bin.dir}"/>
<!-- iterate over all the projects -->
<foreach item="String" in="${visualstudio.executable.projects}"
delim="," trim="Both" property="visualstudio.project">
<!-- get the assembly name -->
<property name="visualstudio.assembly.name.property"
value="visualstudio.project.${visualstudio.project}.assemblyname"/>
<property name="visualstudio.assembly.name"
value="${visualstudio.assembly.name.property}"/>
<echo>${visualstudio.assembly.name.property}</echo>
<echo>${visualstudio.assembly.name}</echo>
<!-- create the target output -->
<vbc target="exe"
output="${build.bin.dir}/${visualstudio.project}.exe">
<references>
<includes name="${build.bin.dir}/*.dll"/>
</references>
<sources
basedir="projects/${visualstudio.project}/src">
<includes name="**/*.vb"/>
</sources>
</vbc>
</foreach>
</target>
<target name="test">
<!-- iterate over all the projects that produce unit testing
assemblies -->
<foreach item="String" in="${visualstudio.test.projects}" delim=","
trim="Both" property="visualstudio.project">
<!-- get the assembly name -->
<property name="visualstudio.assembly.name.property"
value="visualstudio.project.${visualstudio.project}.assemblyname"/>
<property name="visualstudio.assembly.name"
value="${visualstudio.assembly.name.property}"/>
<!-- unittest the assembly -->
<nunit2 verbose="true">
<test
assemblyname="${build.bin.dir}/${visualstudio.project}.dll"/>
</nunit2>
</foreach>
</target>
</project>
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users