Questions tagged [reflexil]

Reflexil is an assembly editor and runs as a plug-in for Red Gate's Reflector, ILSpy and Telerik's JustDecompile. Reflexil is using Mono.Cecil, written by Jb Evain and is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports C#/VB.NET code injection.

Resources:

19 questions
89
votes
1 answer

"A namespace cannot directly contain members such as fields or methods"

I am trying to use this code for NET.reflector using Reflexil. I am trying to replace code with this: if(Input.GetKeyDown(KeyCode.Keypad5)) { int i = 0; Character localPlayer = PlayerClient.GetLocalPlayer().controllable.GetComponent();…
user3204732
  • 903
  • 1
  • 6
  • 4
7
votes
2 answers

Customize .NET Portable Class Library Profiles?

I need to add and/or modify profiles to allow more classes and members to be shared in PCL (many of them are built-in in framework, such as Thread.Sleep). What's the best way to do this? Are there any tools to help that? PS: I'm not seeking an…
AqD
  • 79
  • 5
4
votes
2 answers

.NET reflector + Reflexil Plugin

I've just installed reflexil v2.0 plugin but when I click on it after highliting a method it only displays 3 sub menus : Delete, Rename, Update Reflector object model...I'm not seeing Save as, Inject menus..anybody who can help me solve this?
Toto Marley
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

.NET Reflector - Reflexil, Change private to public

I have an assembly loaded into .NET reflector and I have the reflexil addin. I found a method in the assembly but it's private. Copying the whole method to my code is too much work because it uses many other methods in the assembly. I just want to…
Kirk
  • 89
  • 1
  • 5
3
votes
1 answer

How to modify .net Property using Reflexil v1.5?

I need to modify a .net Assembly that I have lost source for and the only modification I need is to set the property to return 0 instead of 1. The property is a get only property and there are code inside the get method. I'm trying to do this using…
Rojan Gh.
  • 1,062
  • 1
  • 9
  • 32
1
vote
2 answers

How Can I Modify Resource by Reflexil?

I want to change an image in a .net windows application without using source code. How can I modify a image resource in a .net assembly by using Reflexil over Reflector?
1
vote
1 answer

Reflexil deobfustication error

I'm trying to modify a .net application and I'm new to this. First step is attempting to deobfuscate the code using reflexil and I get the following error: Reflexil is unable to clean this assembly: Member 'System.RuntimeTypeHandle "bunch of…
IhaveCandy
  • 111
  • 1
1
vote
1 answer

How to edit code inside a jar?

Possible Duplicate: Changing the code of the class from jar file I'm coming with this from .Net, where there's Reflector and Reflexil, enabling me to open an assembly and edit its code without having to re-compile it. I did some research, and…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
1
vote
1 answer

Assembly Changes With Reflexil Have No Effect

i'm trying to change a DLL of a Net 4.0 Application with Reflexil. The directory looks like this: Main.exe SomeOther.exe Lib1.dll Lib2.dll Lib3.dll ... Now I'm trying to change some IL code in any of these files with Reflector 7.5.3.8 Trail and…
Dine
  • 31
  • 3
0
votes
0 answers

Is there a way to live debug an then patch an APK which has been built with Xamarin but I do not have the source?

Is there a way to live debug an APK which has been built with Xamarin but I do not have the source? I'm looking to set breakpoints while debugging the de-compiled code (which I have done successfully). Most of the functionality is in DLL files now…
0
votes
2 answers

how to patch a signed dll

I have a C# project that uses a third-party library which depends on old version DevExpress. There is a bug in a dll(DevExpress.Utils.v9.2.dll) of this version DevExpress. I use .NET Reflector and Reflexil to patch the dll and use the patched dll…
AlpacaMan
  • 465
  • 2
  • 7
  • 24
0
votes
2 answers

Patch .NET app to run hidden (splash screen/main window) using Reflector/Reflexil

im trying to modify a program to run hidden, no splash screen and no window (it's a free app for canon cameras to receive images over wifi). i use for live slideshow, but every time the camera reconnects, the program is launched and the splash…
0
votes
1 answer

Adding write to log using Reflection

I'm trying to use Reflexil to log a string in an existing method in a dll I haven't got the source code to. The problem is, I can add a method that uses System.IO because I'm trying to add it to a dll that didn't use file writing before and can't…
omni96
  • 41
  • 1
  • 10
0
votes
1 answer

Assign a string to CommandText in IL using Reflexil

I need to edit a query for an application developed some time ago. But I don't have the source code, only the compiled dll's. Following is the source decompiled by Telerik JustDecompile. conCl.Conn(); conCl.Con.Open(); SqlCommand com =…
user6666523
0
votes
1 answer

Choosing .NET version when injecting code with Reflexil

I have a .NET dll file with no source code that was compiled with .NET 2.0. Needed to add a few fields to this dll so I used Reflexil (in conjuction with JustDecompile). I used the inject field option with Reflexil. When I saved and reloaded, I…
1
2