Title: Can't compile assembly when referencing another assembly

Hi,

I can't seem to get this to work:

- The init target does exist and is working
- The property build.dir is defined and the build directory does exist

I think I've just go some incorrect syntax somewhere in here:

<target name="compile" depends="init">
    <vbc target="library" output="${build.dir}\bin\BusinessLayerInterfaces.dll" debug="${debug}">
      <sources>
        <include name="Src\Application\BusinessLayerInterfaces\**\*.vb"></include>
        <exclude name="Src\Application\BusinessLayerInterfaces\My Project\**\*.*"></exclude>
      </sources>
    </vbc>
    <vbc target="library" output="${build.dir}\bin\BusinessLayer.dll" debug="${debug}">
      <imports>
        <import namespace="BusinessLayerInterfaces"></import>
      <sources>
        <include name="Src\Application\BusinessLayer\**\*.vb"></include>
        <exclude name="Src\Application\BusinessLayer\My Project\**\*.*"></exclude>
      </sources>
      <references>
        <include name="${build.dir}\bin\BusinessLayerInterfaces.dll"></include>
      </references>
    </vbc>
  </target>

I get an error saying that BusinessLayer can't compile because the namespace BusinessLayerInterfaces doesn't have any public members or it cannot be found. It does contain several public interfaces, so I would guess that it can't be found. It does, however, exist in ${build.dir}\bin\

Can someone give me a hand?

Thanks,
Matt

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to