I believe that NUnit does something similar to what Bryan describes below. If you really have a compelling reason to change on the fly, you might check out the source code for an example. --Paul Mehner
-----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Bryan Porter Sent: Tuesday, July 18, 2006 8:10 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Loading specific .NET framework Salutations Charles, As I recall, a process can only have one instance of the CLR loaded at any given time. If you are self-hosting the CLR (i.e. an unmanaged C++ application using the CLR COM objects) I suppose you could dynamically change the CLR (with the result of unloading any AppDomains currently loaded when you switch); however, it is trivial to specify which framework is required in the App.config file; see MSDN for more details on this. Regards, Bryan Porter On Jul 18, 2006, at 9:17 AM, Charles Gamble wrote: > Is there any other way to load a different version of the .NET > framework in > a process other than using .NET configuration files ? Can the > version loaded > be changed while a process is running ? > > How exactly is the version of the framework to use determined ? > > > > Any help is appreciated, > > Charles. > > > > > > ______________________________________________________________________ > __ > This e-mail has been scanned for all viruses by MessageLabs. > ______________________________________________________________________ > __ > > =================================== > This list is hosted by DevelopMentorR http://www.develop.com > > View archives and manage your subscription(s) at http:// > discuss.develop.com =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com