Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When trying to compile Bouncy Castle on Mono/openSUSE, msc cannot resolve the correct version of Equals method.
Bouncy Castle 1.7
First, you need to download Bouncy Castle source code package from here,
bccrypto-net-1.7-src-ext.zip contains all files we need, so please use this package instead of the other source package, which lacks of a few files.
Second, extract the source files out and use MonoDevelop to open csharp.sln.
Third, allow MonoDevelop to convert the solution to MSBuild format, and then compile crypto project alone.
Fourth, when MonoDevelop warns that on one of the lines, where Equals method cannot be called,
return z.Square().Equals(this) ? z : null;
The same source code compiles without problems on Windows in Visual Studio, as csc can pick up the correct Equals method.
The workaround is to force the msc to use one of the overloading methods, by changing this line to
return z.Square().Equals((object)this) ? z : null;
Note that this affects msc 2.0, 3.0, 3.5, and 4.0 profiles.
Already fixed in Mono 3.0
Thanks. Good news.