How to rename a .Net DLL to a shorter name

.NET programming topics
Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to rename a .Net DLL to a shorter name

Post by Neo » Wed Nov 28, 2018 4:51 am

I came across a long dll name which I thought would be better to shorten the name. Just renaming doesn't work. Here is the procedure.

1. Open Visual Studio command prompt and run following command

Code: Select all

ildasm /all /out=longname.il longname.dll
2. Open longname.il and replace text with "longname" to "shortname"

3. Rename longname.Properties.Resources.resources to shortname.Properties.Resources.resources

4. Run following command

Code: Select all

ilasm /dll /out=shortname.dll longname.il
5. Add shortname.dll to the project
Post Reply

Return to “.NET Programming”