Hey there everybody,

I noticed someone had asked a question like this a
month or two ago but got no response; I scoured the
docs and couldn't find an explanation of how this
works so here goes.

I'm trying to write a build file that compiles a DLL
upon which a Winforms EXE depends (really just trying
to work up a simple scenario so I can learn the tool).
I can't figure out the syntax of the <references>
section that is supposed to go under the <csc> task.

What I'm trying to do works when I invoke csc
directly, like so:

  csc /r:MyComponent.dll /target:winexe MyForm.cs

My build file looks like this:

<?xml version="1.0"?>
<project name="Client Component" default="run"
basedir=".">

  <target name="component">
    <csc target="library" output="MyComponent.dll">
      <sources>
        <includes name="MyComponent.cs" />
      </sources>
    </csc>  
  </target>
  
  <target name="build" depends="component">
    <csc target="exe" output="MyForm.exe">
      <sources>
        <includes name="MyForm.cs" />
      </sources>
      <references>
         <absolute file="MyComponent.dll" />
      </references>
    </csc>
  </target>

  <target name="run" depends="build">
    <exec program="MyForm.exe" />
  </target>
  
</project>

When the 'build' target fails, it's giving me error
CS0246, 'The type or namespace name 'CodePanic' could
not be found (are you missing a using directive or an
assembly reference?).

I'm using version 0.7.9. Any ideas what I'm doing
wrong? Thanks in advance.

Jeffrey

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to