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?

项目选项

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


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.

链接地址: http://www.djcxy.com/p/58556.html

上一篇: 循环遍历文件列表的有效方法

下一篇: MonoTouch中使用Monodevelop中的环境变量