views:

70

answers:

2

Is there a way we can clone Current Application Domain & its Assembly in to new created domain to execute same piece of code in multiple domain having same dependencies as current domain have.

+1  A: 

No.

But you could write a method that creates an ApplicationDomain and loads specific assemblies into it.

Mitch Wheat
A: 

It is very well possible to create an assembly and hook up assemblies to it and run it. I use a library called NSandbox to ease the creation of app domains while running unit / integration tests (read introduction here).

Steven