none
How to change .NET assembly version exteranlly (without compilaing)? RRS feed

  • Question

  • Hello,

    Is there a way to change the .NET assembly version externally, without changing AssemblyInfo.cs and recompiling it? Also, will it cause any issues if that assembly is referenced in any other assembly? These are local assemblies and they are not Global assemblies.

     

    Thanks,

    Sushant

    Tuesday, March 30, 2010 8:56 AM

Answers

  • If the assembly is referenced in another assembly it will no longer match, and you will break the application. However, if you use reflection to dynamically load the assembly (like a plugin) you might be able to load it.

    If the assembly is signed with a strong name key, it will never work.

    I don't know of any reversioning tool, but I guess some obfuscators or decompilers might have this kind of functionality.

    • Marked as answer by skul Tuesday, March 30, 2010 1:30 PM
    Tuesday, March 30, 2010 11:47 AM
  • Check out Reflexil, a plugin for Reflector. It should do the trick.

    http://sebastien.lebreton.free.fr/reflexil/

     

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    • Marked as answer by skul Tuesday, March 30, 2010 1:30 PM
    Tuesday, March 30, 2010 12:10 PM

All replies

  • If the assembly is referenced in another assembly it will no longer match, and you will break the application. However, if you use reflection to dynamically load the assembly (like a plugin) you might be able to load it.

    If the assembly is signed with a strong name key, it will never work.

    I don't know of any reversioning tool, but I guess some obfuscators or decompilers might have this kind of functionality.

    • Marked as answer by skul Tuesday, March 30, 2010 1:30 PM
    Tuesday, March 30, 2010 11:47 AM
  • Check out Reflexil, a plugin for Reflector. It should do the trick.

    http://sebastien.lebreton.free.fr/reflexil/

     

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    • Marked as answer by skul Tuesday, March 30, 2010 1:30 PM
    Tuesday, March 30, 2010 12:10 PM