DOH! Sent this to just Ashish
When resolving a reference, the VB6 compiler will look first at the CLSID
hive in the registry for the GUID specified in the VBP file. If it cannot
find this, then it will use the path specified in the VBP file to try and
file the reference.
If you are building multiple components in your NAnt build which reference
each other, this should work, as long as you build all your DLLs binary
compatible. When the VB compiler compiles a DLL it will register it, so
your reference GUIDs should point the the recently build component. If
you are not building binary compatible against a suitable copy of the DLL,
you will hit all sorts of problems.
The other thing to watch out for is in the typelib version is also stored
in the VBP file, so if you make interface breaking changes that increment
the type lib version, they may not get picked up properly. If this is a
regular occurence, then the best bet is to write yourself a custom task in
NAnt that will "fix" the VBP and insert the correct component informaiton.
If you look in the System.Runtime.InteropServices namespace, there are a
few classes in there that you can use to interogate a COM dll and extrac
tthe intformation you need, so you could parse the DLLs you've just
compiled and get the necessary information to tweak the VBP files for the
others.
Cheers,
Bill
From "Ashish Mittal" <[EMAIL PROTECTED]>@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]
10/08/2007 12:42
To
<nant-users@lists.sourceforge.net>
cc
Subject
[NAnt-users] VB project compilation issue
Hi All,
I want to compile VB project through NAnt script. But NAnt
doesn’t have the way to provide refrences to DLL that are required
for my VB project.
I also changed the dll location via opening .vbp file in text mode
but still it is taking dll refrence from the already registered dll..
And friends I am not supposed to register any dll on my PC …
So how can I provide the refrence to newly created dll not to
registered one
Bye
######################################### THIS EMAIL MESSAGE IS FOR THE
SOLE USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND
PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR
DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS PLEASE CHECK FOR
VIRUSES AND DEFECTS.IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE NOTIFY
US IMMEDIATELY BY REPLY E-MAIL AND DELETE THE ORIGINAL MESSAGE.
#########################################
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
IMPORTANT
The information contained in this e-mail and any attachments is intended for
the addressee only
and may contain legally privileged or confidential information. If you are not
the intended
recipient you must not use, disclose, copy, distribute, alter, or take any
action in reliance
on the information and Avon Insurance plc will not accept liability for any
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or
representation as to its
accuracy or reliability. If you are not the addressee, please notify us
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.
Avon Insurance plc reserves the right to monitor and record incoming and
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and
ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result
of any virus being passed on.
Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon Avon,
Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British
Insurers.
*For security and training purposes, telephone calls may be recorded and
monitored.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users