How to rename a .Net DLL to a shorter name
Posted: 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
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
5. Add shortname.dll to the project
1. Open Visual Studio command prompt and run following command
Code: Select all
ildasm /all /out=longname.il longname.dll
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