如何在 Visual C++ 2010 中更改输出可执行文件名? [英] How can I change the output executable file name in Visual C++ 2010?

查看:51
本文介绍了如何在 Visual C++ 2010 中更改输出可执行文件名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 Visual C++ 2010 中将输出可执行文件名称 (ProjectName.exe) 更改为某个自定义名称,而无需更改项目名称?

Is there any way to change the output executable name (ProjectName.exe) to some custom name in Visual C++ 2010, without changing the project name?

谢谢.

推荐答案

在配置属性"->常规"下的项目属性"中,有一个名为目标名称"的属性.它默认为$(ProjectName)",但可以更改为您喜欢的任何内容.

In the Project Properties under "Configuration Properties" -> "General," there is a property called "Target Name." It defaults to "$(ProjectName)" but can be changed to whatever you like.

或者,您可以直接在配置属性"->链接器"->常规"下的链接器选项中进行设置;该属性称为输出文件".

Or, you can set it directly in the linker options under "Configuration Properties" -> "Linker" -> "General;" the property is called "Output File."

这篇关于如何在 Visual C++ 2010 中更改输出可执行文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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