How to create .EXE with a different name than the main assembly?

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

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

How to make it as simple as possible?

+6
exe .net-assembly wpf xaml
source share
3 answers

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

enter image description here

+3
source share

Do you just need to change the file name after build? You can use post-build script.

+1
source share

You can specify the xml namespace definition in the assembly.cs file (in the properties folder). In your XAML, reference the code using xml namespace protection instead of your namespace.

http://msdn.microsoft.com/en-us/library/ms747086.aspx

0
source share

All Articles