在NAnt中重建安装项目(.vdproj) [英] To rebuild a setup project(.vdproj) in NAnt

查看:77
本文介绍了在NAnt中重建安装项目(.vdproj)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用以下代码段为NAnt中的.NET重建安装项目.

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" />



我可以确保上面配置的属性没有问题.

请让我知道代码片段是否需要修改.

运行上述代码时,Microsoft Visual Studio 2005打开,并显示找不到文件,无法加载文件".

文件没有问题,并且位置正确.当我使用MSBuild时,此功能有效,但我正在使用NAnt进行尝试.除了重建安装项目之外,一切都很好.

请帮助.. !!!!



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

推荐答案

{DevEnv_Path}" < arg ="
{DevEnv_Path}"> <arg value="


{SlnFiles} /Rebuild
{SlnFiles} /Rebuild


{Config_Setup} |
{Config_Setup}|


这篇关于在NAnt中重建安装项目(.vdproj)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆