开发者

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:

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜