I'm creating a NANT script to compile a project that build fine in the VS.NET 2K5 version.
The project looks like it went through the Conversion Assistant, as there are referenences in the Code to VB6.CopyArray.... When I compile using VBC I get the following; build: [vbc] Compiling 7 files to 'E:\MEA - SmartApp\MEA.SmartApp\MIGRep\bin\release\MIGRep.dll'. [vbc] E:\MEA - SmartApp\MEA.SmartApp\MIGRep\Crypto_cls.vb(445) : error BC30451: Name 'VB6' is not declared. [vbc] GenerateRandomNumbers = CType(VB6.CopyArray(abytBuffer), Byte()) [vbc] ~~~ Can someone tell me what is missing? <vbc target="library" output="${build.dir}/${config}/${basename}.dll" debug="${debug}"> <!--nowarn> <warning number="0519" /> <warning number="0414" /> </nowarn--> <!--imports> <import namespace="System" /> <import namespace="System.Data" /> <import namespace="Microsoft.VisualBasic.Compatibility" /> <import namespace="Microsoft.VisualBasic.Compatibility.Data" /> </imports--> <sources> <include name="**/*.vb" /> </sources> <resources dynamicprefix="true" prefix="${basename}"> <include name="**/*.resx" /> </resources> <references> <!--include name="${framework.home}/Microsoft.VisualBasic.dll" / --> <!--include name="${framework.home}/Microsoft.VisualBasic.Compatibility.dll" /> <include name="${framework.home}/Microsoft.VisualBasic.Compatibility.Data.dll" /--> <include name="${framework.home}/ADODB.dll" /> <include name="${assemblies.dir}/MEA.Framework.DataManagement.dll" /> <include name=" ${framework.home}/Microsoft.ApplicationBlocks.Data.dll" /> <include name="${framework.home}/Microsoft.StdFormat.dll" /> <!--include name="${framework.home}/Microsoft.VisualBasic.dll" / --> <include name="${framework.home}/MSDATASRC.dll" /> <include name="${framework.home}/stdole.dll" /> <!--include name="${framework.home}/System.dll" /--> <include name="${framework.home}/System.Configuration.dll" /> <include name="${framework.home}/System.Data.dll" /> <include name="${framework.home}/System.Drawing.dll" /> <include name="${framework.home}/System.EnterpriseServices.dll" /> <include name="${framework.home}/System.dll" /> <include name="${framework.home}/System.Windows.Forms.dll" /> <include name="${framework.home}/System.XML.dll" /> <include name="${log4net.home}/log4net.dll" /> </references> </vbc> Bill Lindsay - Information Systems Consultant //MetLife/IT/IB/NJ "We must all hang together, or assuredly, we will all hang separately." - Benjamin Franklin The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. ------------------------------------------------------------------------- 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