Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying the following snippet code for rebuilding a setup project for .NET in NAnt.

XML
<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 :

XML
<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 ..!!!!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900