Environment

PDF for offline use

Let us know how you feel about this

Translation Quality


0/250

Overview

The execution environment is the set of environment variables that influence program execution. Environment variables can be set temporarily in the project's properties, or permanently by specifying extra arguments to the mtouch packaging tool.

Temporary environment variables

Temporary environment variables are set in the project's Properties/Options window in the Run > General section. These environment variables are only in effect when the application is started using Visual Studio for Mac, if the app is started manually by tapping on it these environment variables are not set.

Permanent environment variables

Permanent environment variables are set by specifying extra arguments to the mtouch packaging tool. These environment variables are compiled into the executable, and will be set even if the app is not launched from Xamarin Studio.

Example

# log all exceptions to the device log
--setenv:MONO_TRACE=E:all

# to pass multipe environment variables, use --setenv multiple times
--setenv:MONO_TRACE=E:all --setenv:GC_DONT_GC=1

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.