Hi Ian You may want to consider linking to an excellent article on NAnt at http://www.theserverside.net/articles/showarticle.tss?id=NAnt - this article is by far the best I have encountered - specially as far as writing one's own tasks are concerned. It, in effect, kick-started my NAnt task-building involvement.
I also found Guiseppe Greco's doco at http://developer.agamura.com/technotes/building-projects-with-nant/ a nice formal, but very useful document - another worthwhile read. Thanks and regards Subbu -----Original Message----- From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Thursday, 25 March 2004 11:10 PM To: Subbu Balakrishnan Subject: Re: [NAntC-Dev] VB6 Task does not "CheckReferences" correctly Subbu Balakrishnan wrote: >Thanks for the excellent turnaround! > > > no problem. I'd just been looking at that code yesterday so it was a very quick fix. >I am looking at using the vb6 task to do our 250+ component build so expect >some more feedback in the near future. > keep it coming. It good to know some of these tasks are getting pushed a bit so we know we're finding the bugs in them. >Some of the lads find it amusing that >I am using new technology (.NET) to build old (VB6). NAnt and NAntContrib >bring so much out-of-the-box that it seems a shame to re-invent a less >capable "pretender"! > > > Best tool for the job and all that. I originally wrote the vb6 task because I had the memory of managing a large build of mixed vb6 and vc++ 6 with a collection of batch files <shudder>. I think also a lot of people are retaining old vb components and talking to them via interop so it makes sense to be able to have a unified build environment. Ian >Regards >Subbu > >-----Original Message----- >From: Ian MacLean [mailto:[EMAIL PROTECTED] >Sent: Thursday, 25 March 2004 4:47 PM >To: Subbu Balakrishnan >Cc: '[EMAIL PROTECTED]' >Subject: Re: [NAntC-Dev] VB6 Task does not "CheckReferences" correctly > > >Thanks Subbu, >Changes committed. Thats 3 bug reports this week for the vb6 task. > >Ian > >Subbu Balakrishnan wrote: > > > >>I noticed two issues here: >>[1] ActiveX Control references are not catered for i.e "Object={some guid >>..." lines in the VB6 project file. >>[2] "referenceRegEx" returns incorrect values for "majorver", "minorver" >> >> >and > > >>"lcid" >> >>I have made the following modifications and they fix the problems mentioned >>above: >> >>--->Replace (line 329) >> Regex referenceRegEx = new >>Regex(@"Reference\s*=\s*\*\\G{(?<tlbguid>[0-9\-A-Fa-f]*($^\.)*)}\#(?<major v >> >> >e > > >>r>[0-9\.0-9($^\.)*]*)\#(?<minorver>[0-9]($^\.)*)\#(?<tlbname>.*)\#"); >>--->With >> Regex referenceRegEx = new >>Regex(@"(Object|Reference)\s*=\s*({|\*\\G{)(?<tlbguid>[0-9\-A-Fa-f]*($^\.) * >> >> >) > > >>}\#(?<majorver>[0-9($^\.)*]*)\.(?<minorver>[0-9]($^\.)*)\#(?<lcid>[0-9]($^ \ >> >> >. > > >>)*)(;|\#)(?<tlbname>.*)"); >> >>--->Replace (line 355) >> else if (key == "Reference") { >>--->With >> else if (key == "Object" || key == "Reference") { >> >>--->Add the line >> tlbName = tlbName.Trim('\0'); >>--->After the line (386) >> QueryPathOfRegTypeLib(ref guid, majorVer, minorVer, lcid, out >>tlbName); >>To remove trailing null chars else the File.Exists call that follows >> >> >returns > > >>false even the file exists. >> >>Regards >>Subbu Balakrishnan >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>NAntContrib-Developer mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer >> >> >> >> > > > > -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer