[Mono-list] replacement for mscoree.dll

Paolo Molaro lupus@ximian.com
Fri, 3 Jan 2003 17:01:11 +0100


On 12/31/02 Jeroen Janssen wrote:
> What happens is that Microsofts mscoree.dll will first look at the 
> .config file. The config file tells it to use the runtime 'v1.0.0.1' 
> (which doesn't really exists officially, but it's just a way for our 
> 'runtime' to be used). Next it will load mscorwks.dll and have it 
> execute the .NET application.
> 
> Now a possible scenario would be to have a mono + a mscorwks.dll 
> installed in "C:\WINNT\Microsoft.NET\Framework\"<SOME_VERSION>\.
> Where SOME_VERSION is a version that is not being used by Microsoft 
> (else we have a conflict with an installed .NET Framework).
> 
> Next step would be to have mcs generate executables that don't need a 
> .config file to execute through this mechanism (the resulting exe should 
> probably contain some kind of reference to a 'SOME_VERSION' runtime, so 
> mscoree will select the correct runtime: mono).

This is possible (there is an entry in the PE file that is used by the
loader as the directory in Microsoft.NET\Framework\), but it's not an
acceptable solution, because it would make programs generated by mono
non-runnable with the ms runtime.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better