为什么在使用命令行构建VS安装项目时没有输出? [英] why no output when use command line to build VS setup project?

查看:106
本文介绍了为什么在使用命令行构建VS安装项目时没有输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在构建机器上安装了Visual Studio 2008,因为我们要构建安装项目以为C#应用程序创建MSI安装程序。

I have installed Visual Studio 2008 on our build machine because we want to build the setup project to create MSI installer for our C# application.

在IDE中,它可以正常工作。

From IDE, it works fine. The installer is created as expected.

切换到命令行,使用以下命令完成该过程,没有任何错误,但是没有输出(未创建安装程序)

Switch to command line, with the follow command the process finished without any error but there is no output (no installer created)

DevEnv.exe .\\SystemSoftwareInstaller\\SystemSoftwareInstaller.vdproj /build Debug /Out "debugErr.txt"

/ build 更改为 / deploy / rebuild 没有区别(未创建安装程序)

change the /build to /deploy to /rebuild have no difference (no installer created)

我是

推荐答案

为Debug版本创建安装程序没有任何意义,您始终需要Release版本

It doesn't make sense to create an installer for the Debug build, you always want the Release build.

如果确实有必要,则在Visual Studio,Build + Configuration Manager中打开.vdproj,然后选中Debug配置的Build复选框。请注意,此属性存储在.sln文件中,而不是.vdproj文件中,因此请单击文件+全部保存以使VS编写解决方案文件。

If that's really necessary then open the .vdproj in Visual Studio, Build + Configuration Manager and tick the Build checkbox for the Debug configuration. Beware that this property is stored in the .sln file, not the .vdproj file so click File + Save All to let VS write the solution file.

这篇关于为什么在使用命令行构建VS安装项目时没有输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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