How to change the output name of an executable built by Visual Studio
I want to change name of executable file. Like suppose my project name is "SampleDemo" It will create executable file Like 'SampleDemo.exe' but I want to rename it to 'Demo.exe'
- Open the Project Properties in Visual Studio (right click on project in Solution Explorer and select "Properties" from popup menu)
- On the "Application" tab of the properties window, change the "Assembly name"
If like me you wanted to change the output file name without changing the assembly name, put this like in your .csproj's main <PropertyGroup>
:
<TargetName>Desired output name without extension</TargetName>