Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi ,
I want to change the exe name and assembly namespace after Building the c# application under 2.0 or lower edition of .net framework.
basically i want to put exe name under config file and whenever i want to change exe name and namespace i will do only changes under config file .

any idea regarding this if please share it.



Regards
Rohidas
Posted
Comments
Sergey Alexandrovich Kryukov 16-Sep-13 10:09am    
Why?!
—SA

1 solution

The question makes no sense at all. If, under "config" file you mean the file named as "myApplication.exe.config", it is itself based on the name of the main executable module of the entry-point assembly of your application. This way, you would need to have some other application (even the batch file) which could rename your file(s). But why? I doubt your idea can make any sense, you should better review your architecture.

Anyway, please be aware that the application cannot rename itself. Moreover, no code can rename an executable file, if it is loaded. As to the namespace, you can change it effectively only by re-building the assembly.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900