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开发者_Python百科 for not updating so many dependencies.
How to do it as simple as possible?
Go to the project's properties and change "Assembly name" setting on the "Application" tab:
You just need to change the file name after the build? You could use a post-build script.
You could put an xml namespace definition in your assembly.cs file (in properties folder). The in your XAML reference the code using the xml namespace defination instead of your namespace.
http://msdn.microsoft.com/en-us/library/ms747086.aspx
精彩评论