Hi,
I am trying the following snippet code for rebuilding a setup project for .NET in NAnt.
<target name="RebuildSetup">
<echo message="Rebuilding the Setup project"/>
<exec program="${DevEnv_Path}">
<arg value="${SlnFiles} /Rebuild ${Config_Setup}|${Setup_Platform} /Project ${ProjectFiles}"/>
</exec>
</target>
where the properties are as below :
<property name="SlnFiles" value="D:\Testform\Testform.sln" />
<property name="ProjectFiles" value="D:\Testform\Setup1\Setup1.vdproj" />
<property name="Setup_Platform" value="Any CPU" />
<property name="Config_Setup" value="Release" />
<property name="DevEnv_Path" value="C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv" />
I can assure there is no issues with the properties configured above.
Just let me know if the code snippet needs modifications.
While running the above code, the Microsoft Visual Studio 2005 opens up and says that "The files could not be found and cannot be loaded".
The files are fine and are at the correct position. This thing works when i work with MSBuild, but i am trying it out with NAnt. Everthing is fine except the rebuilding of the setup project.
Please help ..!!!!