Putting a space in a WPF application name

n0kx 1 Reputation point
2020-09-15T20:08:58.277+00:00

I have created a WPF project named "MyApplication" because if you put a space it creates a weird namespace. However, I want my executable to be "My Application". Where can I make this happen and will changing it from "MyApplication" to "My Application" break anything?

I can set Title = "My Application" in MainWindow.xaml but that doesn't change the actual EXE file.

Thanks!

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. DaisyTian-1203 11,611 Reputation points
    2020-09-16T02:41:17.907+00:00

    You can make your executable file to be "My Application.exe" by referring to below steps:

    Step 1: Rigth click the project MyApplication,select "Properties" from popup menu
    Step 2: On the "Application" tab of the properties window, change the MyApplication to My Application under "Assembly name" .
    Step 3: Clean and build the project, you will get the My Application.exe in the debug folder.
    25033-capture.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments