Giter Club home page Giter Club logo

renameasm's Introduction

RenameAsm

Renames a .net assembly/module/namespaces:

  • Will change the file name, but also the actual .net assembly name and the matching module name
  • Will also rename all namespaces

Usage: RenameAsm.exe <dll to rename> <new name>

Example: RenameAsm C:\my.dll newname will output newname.dll

That requires the dll name and its namespaces to match in the first place: if you have a dll/assembly named AB but its namespace is A.B, it won't match. in that case, either call the tool twice (rename AB to A.B first, then A.B to C.D) or just add a .Replace("AB", "A.B") line in Program.cs.

How it works

  • ildasm /output:pre.il my.dll disassembles the dll and write the il to a pre.il file
  • text replace my with newname and write that to post.il
  • ilasm /dll /out:newname.dll post.il

Embedded resources

if reassembling fails because embedded resources cannot be found: the disassembling has extracted those resources to the disk (eg. my.someresource.resource). rename these files by hand (newname.someresource.resource), then re-run the tool

renameasm's People

Contributors

theor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.