I assume this is just for example and you are really using the <references>
element in the <csc> task?

Have you tried running NAnt with the -verbose and/or -debug switches to see
what it really resolves the references to?  There's also a function in NAnt
contrib. That will convert a fileset to a string for printing to log or
debug etc.

BTW - Rather than having a separate property, you can specify the basedir
attribute on the <references> element and set it to the base path to your
Business Objects stuff.

HTH,
Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Fetzer
Sent: 18 October 2007 00:03
To: Nant Users
Subject: [NAnt-users] Adding Reference to Crystal DLL's

Does anybody have any experience doing this?  I searched the archive and
found that NAnt doesn't scan the GAC if it doesn't find references.  So I
added AssemblyReferences to the dll's directly.  Well, that doesn't seem to
work because they don't get thrown into the csc.exe call.  Here's what I
tried adding:

  <property name ="crystalDlls" value="C:\Program Files\Business
Objects\Common\3.5\managed" />
 
      <assemblyfolders>
         <include
name="${crystalDlls}\dotnet2\CrystalDecisions.Windows.Forms.dll" />
         <include name="${crystalDlls}\dotnet2\CrystalDecisions.Shared.dll"
/>
         <include
name="${crystalDlls}\dotnet2\CrystalDecisions.CrystalReports.Engine.dll" />
         <include
name="${crystalDlls}\CrystalDecisions.Enterprise.InfoStore.dll" />
         <include
name="${crystalDlls}\CrystalDecisions.Enterprise.Framework.dll" />
         <include name="${crystalDlls}\CrystalDecisions.Enterprise.dll" />
      </assemblyfolders>

I'm still getting:  Error CS0246: The type or namespace name
'CrystalDecisions' could not be found (are you missing a using directive or
an assembly reference?)

Any help?

Thanks,
Eric

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to