[Gtk-sharp-list] Problems with Gtk# 0.10 installer for Windows

Mathias Hasselmann mathias.hasselmann@gmx.de
Wed, 02 Jul 2003 21:28:46 +0200


Miguel de Icaza wrote:

> Hello,
> 
> 
>>Valid point. But the installer allows you to select any installation 
>>location for the assemblies (at least I designed it that way ;-). Mono's 
>>directory was choose 'cause I don't know a good way to tell Mono to 
>>search assemblies outside of it's installation directory. Ok. There is 
>>the MONO_PATH variable? But how to set this variable on the Windows 
>>platform? C:\autoexec.bat munging? Behave! Well, maybe there is a hidden 
>>registry entry to modify the default environment I'm not aware of.
> 
> 
> Could we get patches to use the registry, like your Gtk# patches do?

Not really: Mono won't lauch Gtk# applications if it cannot find 
gtk-sharp.dll. So adjusting MONO_PATH from within the assembly won't 
help. But something that could help, would be a MONO_PATH equivalent in 
/etc/mono/config or /etc/mono/machine.config. Microsoft .NET uses this 
mechanism:

<configuration>
    <runtime>
       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
             <assemblyIdentity name="myAssembly"
                               publicKeyToken="32ab4ba45e0a69a1"
                               culture="en-us" />
             <codeBase version="2.0.0.0"
                       href="http://www.litwareinc.com/myAssembly.dll"/>
          </dependentAssembly>
       </assemblyBinding>
    </runtime>
</configuration>

Maybe we can add something similiar to Mono?

Ciao,
Mathias