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?
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With