Page 1 of 1

How to rename a .Net DLL to a shorter name

Posted: Wed Nov 28, 2018 4:51 am
by Neo
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 / longname.dll
2. Open 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
5. Add shortname.dll to the project