Hi
I've got a prob with a DLL that NAnt 0.8.2 compiles on a machine that has .NET
Framework 1.0 on it, not 1.1. In short:
- it fails if I have a reference to the NAnt-compiled version of this DLL when
compiling another DLL
- it works if I have a reference to the VS.NET-compiled version of this DLL when
compiling another DLL
- it works if I have a reference to the csc-compiled version of this DLL when
compiling another DLL
so I think I've isolated NAnt as the problem. NAnt seems to compile the first DLL
without any problems - it's only when this compiled DLL is referenced by the second
DLL that it fails.
Here's my NAnt call to compile that first DLL, that fails when referenced by the
second DLL:
<csc verbose="true" target="library" output="${build.dir}/bin/Resource.dll"
debug="true">
<sources>
<includes name="AssemblyInfo.cs"/>
<includes name="IKey.cs"/>
<includes name="Key.cs"/>
<includes name="SessionKey.cs"/>
</sources>
<references basedir="${build.dir}/bin">
<includes name="System.dll" />
<includes name="System.Data.dll" />
<includes name="System.XML.dll" />
</references>
</csc>
Here's my working csc call that produces that same first DLL, and succeeds when
referenced by the second DLL:
csc /out:Resource.dll /target:library
/reference:System.dll,System.Data.dll,System.XML.dll assemblyinfo.cs ikey.cs key.cs
sessionkey.cs
Both nant and csc are called from a VS.NET command prompt that also has the NAnt bin
directory in its path.
In NAnt.exe.config I have <nantsettings defaultframework="net-1.0"> . I have also
commented out the supporting runtime - this makes the verbose <csc> call a lot happier
as it doesn't complain about missing framework 1.1 info:
<startup>
<supportedRuntime version="v1.0.3705" />
<!--supportedRuntime version="v1.1.4322" /-->
</startup>
I'm kinda stumped now. Any ideas? Have I missed something obvious? Unfortunately I am
unable to upgrade to the .NET Framework 1.1 in this project.
Many thanks if you can help.
Kenton Price
�ą5�^�����'���u��j����D��+��(}g�j�lj�h��^��-�x&���� 塧^��Vy����v�i��y�(�
0��ڲ��r��n�ez�k��ڦ�
j{n��왨��x%��Mj{n���+-��.�ǟ����a��l��b��,���y�+���b��?�+-�w��v����