Is it possible to specify a different runtime for an AppDomain?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is my code (simplified):

AppDomainSetup cfg = new AppDomainSetup();
cfg.ConfigurationFile = "app.config";
_domain = AppDomain.CreateDomain(this.txtDomainName.Text, null, cfg);
_domain.ExecuteAssembly(Application.ExecutablePath);

In app.config, I specify a different version using supportedRuntime tag. But
I do not get expected result; I do get correct appSettings specified in
app.config for the new domain. It seems that the newly created AppDomain is
always run on the runtime of the default domain.

I want to know if this behavior is not configurable.
 
I want to know if this behavior is not configurable.

No, it's one runtime version per process.



Mattias
 
Back
Top