You don't need to set (and aren't meant to set) the exename
parameter, the NAnt task will find the VB compiler for you. The exename
framework configurable parameter is actually defined in the abstract class ExternalProgramBase
, which the vb6
task inherits from.
The vb6
task requires that the Visual Basic IDE is installed so it can use vb6.exe
. It'll find vb6.exe
by looking up SOFTWARE\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual Basic\ProductDir
(refer the source code).
Since you indicated that this is a new build machine and you are reinstalling software (e.g. NAnt Contrib), it is likely you haven't reinstalled Visual Basic on this new build machine. If you have installed it, check the registry key and follow the path, you might need to reinstall Visual Basic to repair the registry key.