A launcher for .NET executables that adds support for the MONO_PATH environment variable when using the .NET Framework.
The Mono documentation recommends not changing the MONO_PATH environment variable. However, it is useful for injecting dependencies at runtime, e.g. when using Zero Install.
Run build.cmd to generate these executables:
monopath-emulator.clr2.exefor .NET 2.0-3.5 command-line applicationsmonopath-emulator.clr4.exefor .NET 4.0+ command-line applicationsmonopath-emulator-win.clr2.exefor .NET 2.0-3.5 GUI applicationsmonopath-emulator-win.clr4.exefor .NET 4.0+ GUI applications
You can manually invoke monopath-emulator like this:
set MONO_PATH=C:\Directory\Containing\Library
monopath-emulator[-win].(clr2|clr4).exe Application.exe
monopath-emulator is usually used in Zero Install feeds like this:
<command name="run" path="Application.exe">
<runner interface="https://apps.0install.net/dotnet/clr-monopath.xml" />
</command>
<requires interface="http://some/library.xml">
<environment name="MONO_PATH" insert="." />
</requires>