Title: <cl> and <link> tasks

Is there any way to get the <cl/> and <link/> tasks to work without having Visual Studio environment variables setup (i.e. the PATH variable)?  The .NET tasks detect the correct location to run from, but the C++ tasks dont.  Is there anything I can do in Nant.exe.config to help this along?  I tried this (in the .NET 1.1 framwork section), but it doesnt work:

<readregistry

        property="vsDevInstallDir"

        key="SOFTWARE\Microsoft\VisualStudio\7.1\InstallDir"

        hive="LocalMachine" />

<task name="cl">

        <attribute name="exename">${path::combine(vsDevInstallDir, '../../vc7/bin/cl.exe')}</attribute>

</task>

<task name="link">

        <attribute name="exename">${path::combine(vsDevInstallDir, '../../vc7/bin/link.exe')}</attribute>

</task>

Reply via email to