如何在 Visual C++ 2010 中更改输出可执行文件名? [英] How can I change the output executable file name in 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屋!