Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate an .EXE with different Name than the main Assembly?

I have a WPF application with lot of XAML code referencing the main assembly (for widgets, styles and these things).

But now I need to change the name of the .EXE, but not its source main assembly for not updating so many dependencies.

How to do it as simple as possible?

like image 721
Néstor Sánchez A. Avatar asked Apr 06 '11 08:04

Néstor Sánchez A.


2 Answers

Go to the project's properties and change "Assembly name" setting on the "Application" tab:

enter image description here

like image 150
Pavlo Glazkov Avatar answered Sep 29 '22 22:09

Pavlo Glazkov


You just need to change the file name after the build? You could use a post-build script.

like image 28
nlawalker Avatar answered Sep 29 '22 23:09

nlawalker