The follow sequence does not work if MONO is not present:
<include if="${framework::exists('mono-2.0')}" name="${path::combine(framework::get-assembly-directory('mono-2.0'), 'Mono.CompilerServices.SymbolWriter.dll')}" />
It produce the follow error:
Function call failed.
Expression: ${path::combine(framework::get-assembly-directory('mono-2.0'), 'Mono.CompilerServices.SymbolWriter.dll')}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed to initialize the 'Mono 2.0 Profile' (mono-2.0) target framework.
Registry Path Not Found! - key='SOFTWARE\Novell\Mono\';hive='Microsoft.Win32.RegistryHive[]';
The problem occur with version 0.85 and 0.90.
I was able to duplicate this. I just need to see what the best course of action is.
Sample Build File that recreates issue