Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything like JRebel for .NET? [closed]

Tags:

.net

jrebel

JRebel is a tool for Java that can automatically swap in new versions of classes to a running JVM. Not only can method implementations be changed, it's also possible to change their signatures, to add new or remove existing methods, and also add/remove fields. About the only thing that cannot do is allow the class hierarchy to be altered on-the-fly. It's a real boon for web app development in particular.

Could I find anything similar for .NET?

like image 376
Dan Haywood Avatar asked Aug 11 '10 12:08

Dan Haywood


2 Answers

There is no such thing in the .net world.. not so powerful.. there are some thing like Edit and Continue but this is like "Hot replace" in Java and nothing more. The problem is in .net you have the whole model of .dll(s) with their versions and dependencies between dlls pointing to specific version so it is not possible to replace dll without replacing all.

An workaround will be something like compiling the classes, adding tons of assembly redirects, somehow unloads and loads the old dll but it is hell of a hard.

Keep in mind that in java after the "module" JSR is implemented maybe in java 9 we will not have JRebel as well.

like image 64
JOKe Avatar answered Sep 21 '22 17:09

JOKe


There is not such thing for .Net yet. In the meantime, you can try NCrunch (http://www.ncrunch.net/), which is running your tests in the background and the moment you break or make a test pass it is reported in the test results, so you don't need to wait for rebuild and test execution as it is happening in real time.

like image 40
Adrian Padilla Avatar answered Sep 18 '22 17:09

Adrian Padilla