How can I change the output executable file name in Visual C++ 2010?
Is there any way to change the output executable name (ProjectName.开发者_如何学Goexe) to some custom name in Visual C++ 2010, without changing the project name?
Thanks.
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."
In Visual Studio 2012+ you can proceed as answered by James accessing project properties and then you'll need to modify the value of "Assembly Name" field of Application tab.
In addition to that if your project is a WPF application you also need to rename all sources reference in xaml for ResourceDictionary
, Image
, etc... as follows:
Source="/YourAssemblyName;component/YourDir/YourFile.ext"
or if you are using uri in code
new Uri("pack://application:,,,/YourAssemblyName;component/YourDir/YourFile.ext")
精彩评论