Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using environment variables in Monodevelop with MonoTouch

I've been trying to mess around with the SGen garbage collector's configurations and as I've seen here, here, and in the mono man page, I've got a few environment variables to work with.

As shown in this image, I added them to my project (checked inside the csproj too), and they only get ignored when i run my app. I got all my environment variables using Environment.GetEnvironmentVariables() and neither MONO_GC_PARAMS or MONO_GC_DEBUG were there.

So my question is how do I use environment variables in a MonoTouch project?

Project Options

Versions
Monotouch 5.2.10 (Evaluation)
MonoDevelop 2.8.6.5
Mono 2.10.8
Mac OS X 10.6.8

like image 771
Louis Boux Avatar asked Mar 28 '12 14:03

Louis Boux


1 Answers

MonoDevelop 2.8.6 does not include support for setting environment variables when executing MonoTouch projects.

The current MonoDevelop beta version (2.8.8.3) does include support for environment variables, so you can install the beta from here if you want to try it out.

like image 140
Rolf Bjarne Kvinge Avatar answered Nov 16 '22 10:11

Rolf Bjarne Kvinge