Hello nant-developers, I've searched through the mail-list but could not find the following issue:
VS.NET 2003 copies referenced assemblies to the output directory. If there exists file which it tries to copy with read-only attribute set, compilation fails. If copying succeedes and the file which has been copied had read-only attribute set, it is reset (so, file attributes become Normal). On the other hand, <solution> task always copies referenced assemblies "as-is", preserving their attributes. If there already existed that assembly, even with read-only attributes, it is rewritten. Such a difference causes problems when we try to mix building using nant and building some modules using Visual Studio. I've investigated these differences and found that the first one (read-only files get overwritten) is the result of using the <copy> task in Project.cs, which just resets the attributes to Normal, if they are not (probably, there is some sense in adding one more parameter to <copy> task, something like "clobberreadonly"), the second problem may be fixed by invoking the AttribTask task just after copying, to reset the attributes. -- Best regards, Ivan mailto:[EMAIL PROTECTED] * Life is complex. It has real and imaginary components. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
