[Mono-dev] problems compiling using System.Configuration using Mono 2.0
mhorsley at vqlive.com
Tue Oct 14 10:22:27 EDT 2008
I can use the following on MS:
This requires a reference to System.Configuration.
I'm trying to do the same on mono 2.0 (using the VMWARE image) but cant
figure out what reference I need to give mcs to get it to compile.
I've tried "-r:System.Configuration.dll" and get the mcs error "cannot find
metadata file 'System.Configuration.dll" whereas if I use
"-r:System.Configuration.Install.dll" (having found the dlls in
/user/lib/mono/2.0/) I get the mcs error "Error CS0234 the type or namespace
'ConfigurationManager' does not exist in the namespace
'System.Configuration' are you missing an assembly reference?
I can use the legacy mode ConfigurationSettings.AppSettings but this then
means I have 2 variants of code (one for Windows, one for Linux)
Any help appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list