How can I change the MAUI app executable name?

Rainer 166 Reputation points
2023-02-26T05:09:20.0933333+00:00

It seems that when an app is built in names the executable file based on the name of the project. That is, if your project is foo.csproj then the excutable will be foo. Is there any way to change this other than changing the .csproj file name?

Why do I want this? In my solution I would like the project for my app to better reflect the functionality of the project instead of the name. For example I have library projects like Configuration, Services, and ViewModels. I would like to name my MAUI app project just App, but if I do so then the executable becomes App instead of foo.

VS 17.5 (build 1802)

MAUI 7.0.59.

Developer technologies .NET .NET MAUI
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.