without seeing your build file its hard to say. However if the compiler is saying its missing the reference then it does need that reference. Thats how the compiler works - not some function of nant. Maybe because vs.net allows you to add references to projects ( as opposed to just assemblies ) it automatically references B's dependencies when C references B. So my answer is that you should add the extra reference. You need to be a bit more explicit when setting references in NAnt.
Ian
I am currently getting a missing reference error when I build with my build scripts but a clean compile in my Visual Studio. My current structure looks similar to the following:
Project A Public Interface A
Project B Public Class B implements inplements A
Project C Public Class C Private Sub Method (ByVal val as B)
For the build.xml files: B.build.xml has a reference to project A C.build.xml has a reference to project B
When using my build scripts with Nant, the compiler complains that it needs a reference to Project C needs a reference to Project A even though it never calls the implemented methods or references it in anyway. In my previous experiences with other languages, and also in Visual Studio .Net, a reference to the project B was sufficient for project C. Does anyone know if a reference to the interface project should be added or is there probably an error in my build.xml files?
Thanks.
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users