I haven't spent much time with the 0.85 builds, but with 0.84 I've been able to use:

<include name="System.Data.dll"/>
<include name="System.Runtime.Remoting.dll"/>

and it seems to pick the assembly from the current runtime framework directories automatically.

YMMV


Richard Sbarro wrote:
Just for the record, I solved my problem... I changed the script to read as follows and now it picks everything up fine, although I'm still wondering if the Microsoft assemblies in the framework directory should be referenced by default.

<csc output="Build\MyProject.exe" target="winexe">
<references basedir="Build">
*<include name="${framework::get-framework-directory('net-1.1') + '\Microsoft.*.dll'}" />*
<include name="*.dll" />
</references>
<sources basedir=".">
<include name="MyProject\**\*.cs" />
</sources>
</csc>


Regards,
Rich

Richard Sbarro wrote:

Just wondering what the proper syntax for referencing the Microsoft assemblies found in the Framework directory (i.e. "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322") is. It seems that the System assemblies are picked up without being explicitly referenced, but the Microsoft assemblies in that directory are not. This is a problem because not all of the developers on my project have the .NET Framework installed in the same location.

For example, I have a <csc> task that works when the references are set up as:

<csc output="Build\MyProject.exe" target="winexe">
<references basedir="Build">
<include name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Microsoft.*.dll" />
<include name="*.dll" />
</references>
<sources basedir=".">
<include name="MyProject\**\*.cs" />
</sources>
</csc>


But if I remove the reference to the "Microsoft.*.dll", I get a compile error.

Should the <csc> task implicitly reference all Framework assemblies, or am I doing something wrong? I can build a repro if my explanation isn't clear enough.

Thanks,
Rich


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users






-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to