Skip to content
launcher for .NET executables that adds support for the MONO_PATH environment variable
C# Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
COPYING.txt
README.md
app.manifest
build.cmd
cli-monopath-terminal.xml
cli-monopath.xml
monopath-emulator.cs

README.md

monopath-emulator

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.

Building

Run build.cmd to generate these executables:

  • monopath-emulator.clr2.exe for .NET 2.0-3.5 command-line applications
  • monopath-emulator.clr4.exe for .NET 4.0+ command-line applications
  • monopath-emulator-win.clr2.exe for .NET 2.0-3.5 GUI applications
  • monopath-emulator-win.clr4.exe for .NET 4.0+ GUI applications

Usage

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>
You can’t perform that action at this time.