Link to home
Start Free TrialLog in
Avatar of g_johnson
g_johnsonFlag for United States of America

asked on

How do I rename an already compiled C#.Net project

I started a project called TestDll which was to create an executable to test my dll.  It produces TestDll.exe.  

I have now modified this to be a permanent application and no longer want "TestDll" to be the name.  I now want to name it "RMAProcessor.exe".  How do I change the compiled name?  Is this where Assembly Name comes in?

Also, if I recompile with a new name, will the original TestDll.exe still be there and can it be safely deleted?
Avatar of Expert1701
Expert1701

In your Project Properties, on the Application tab, you can change the "Assembly name" field to produce an executable with a different name.  In Visual Studio 2008 SP1, rebuilding the application will remove the old executables automatically; I don't know about other versions, but you could safely delete these old files from the bin\Debug folder.

You will also want to change the contents of the AssemblyInfo.cs file (under the Properties folder in Solution Explorer) to reflect the new Assembly name.
Avatar of g_johnson

ASKER

****** You will also want to change the contents of the AssemblyInfo.cs file (under the Properties folder in Solution Explorer) to reflect the new Assembly name. ******

Would I do this before or after I compile?
ASKER CERTIFIED SOLUTION
Avatar of Expert1701
Expert1701

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect. Thank you.