I'm having the same issue, did you get any further with this Steve? I've managed to get Gendarme compiling on OS X by altering the common.make file to explicitly use the dmcs compiler - as opposed to mcs - as shown in the diff of the following Gist, but the fact that modification was necessary likely indicates something is wrong either with my configuration or with the Gendarme build system setup.
https://gist.github.com/cameronyule/5390004/revisions On Wednesday, 13 March 2013 01:52:19 UTC, Steve Palmer wrote: > > OK, it appears that I already have /opt/local/lib/mono/4.0. So why isn't > the make picking this up instead of using the one in 2.0? > > Specifically, how do I fix this to tell make to use 4.0? > > > > On Tuesday, March 12, 2013 10:37:21 AM UTC-7, Steve Palmer wrote: >> >> Ah, thanks! Macports told me I had the latest mono SDK. I'll see if I can >> find a newer one. >> >> >> On Tuesday, March 12, 2013 6:29:56 AM UTC-7, Sebastien Pouliot wrote: >> >>> You are trying to build against /opt/local/lib/mono/2.0/mscorlib.dll >>> which does not have the API, e.g. Version.TryParse, that are new in >>> .NET 4.0 (and which Gendarme requires). >>> >>> On Mon, Mar 11, 2013 at 10:27 PM, Steve Palmer <[email protected]> >>> wrote: >>> > Hi, folks. I seem to have found a build issue with Gendarme under Mac >>> OSX: >>> > >>> > /opt/local/bin/mcs -target:library -debug+ -d:TRACE -optimize+ >>> -nowarn:1591 >>> > -warn:4 -warnaserror+ -nowarn:1591 >>> > -doc:../../bin/Gendarme.Rules.BadPractice.dll.doc \ >>> > >>> -r:/Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/gac/Mono.Cecil/0.9.4.0__0738eb9f132ed756/Mono.Cecil.dll >>> >>> >>> > -r:../../bin/Gendarme.Framework.dll >>> > -out:../../bin/Gendarme.Rules.BadPractice.dll >>> > ./AvoidAssemblyVersionMismatchRule.cs >>> > ./AvoidCallingProblematicMethodsRule.cs >>> > ./AvoidNullCheckWithAsOperatorRule.cs >>> ./AvoidVisibleConstantFieldRule.cs >>> > ./CheckNewExceptionWithoutThrowingRule.cs >>> > ./CheckNewThreadWithoutStartRule.cs >>> ./CloneMethodShouldNotReturnNullRule.cs >>> > ./ConstructorShouldNotCallVirtualMethodsRule.cs >>> > ./DisableDebuggingCodeRule.cs ./DoNotDecreaseVisibilityRule.cs >>> > ./DoNotForgetNotImplementedMethodsRule.cs >>> > ./DoNotUseEnumIsAssignableFromRule.cs >>> > ./DoNotUseGetInterfaceToCheckAssignabilityRule.cs >>> > ./EqualShouldHandleNullArgRule.cs >>> ./GetEntryAssemblyMayReturnNullRule.cs >>> > ./ObsoleteMessagesShouldNotBeEmptyRule.cs >>> > ./OnlyUseDisposeForIDisposableTypesRule.cs >>> > ./PreferEmptyInstanceOverNullRule.cs >>> > ./PreferParamsArrayForVariableArgumentsRule.cs >>> ./PreferSafeHandleRule.cs >>> > ./PreferTryParseRule.cs ./ReplaceIncompleteOddnessCheckRule.cs >>> > ./ReturnNullRule.cs ./ToStringReturnsNullRule.cs >>> > ./UseFileOpenOnlyWithFileAccessRule.cs ../../AssemblyInfo.cs >>> > ./../../AssemblyStaticInfo.cs >>> > ./AvoidAssemblyVersionMismatchRule.cs(87,41): error CS0117: >>> `System.Version' >>> > does not contain a definition for `TryParse' >>> > /opt/local/lib/mono/2.0/mscorlib.dll (Location of the symbol related >>> to >>> > previous error) >>> > >>> > This is on Mac OSX 10.8.2. >>> > >>> > Running autoconf.sh from the mono-tools folder worked fine. Any idea >>> what >>> > this might be? I can't find any prior mention of this on the group or >>> > anywhere else. >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Gendarme" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to [email protected]. >>> > To post to this group, send email to [email protected]. >>> > Visit this group at http://groups.google.com/group/gendarme?hl=en. >>> > For more options, visit https://groups.google.com/groups/opt_out. >>> > >>> > >>> >> -- You received this message because you are subscribed to the Google Groups "Gendarme" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/gendarme?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

