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
Developer Community or GitHub 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.
Created attachment 11282 [details]
List of supported Xamarin.Mac 4.5 Unified Assemblies
Xamarin Studio reports "Target framework 'System.Drawing.dll' is invalid when targetting Xamarin.Mac 4.5 .NET framwork. (MM1406)", when the System.Drawing assembly is included in the "References" for any project targeting Xamarin.Mac 4.5 Unified framework.
According to the documentation (http://developer.xamarin.com/guides/mac/advanced_topics/assemblies/), System.Drawing is a supported framework for Xamarin.Mac 4.5.
Steps to reproduce:
1) Create brand new Xamarin.Mac unified Cocoa project
2) Change Target Framework to Xamarin.Mac .NET 4.5 Framework (Project Options->General)
3) Add new reference for "System.Drawing" (References->Edit References)
4) Compile Target and see error.
Created attachment 11283 [details]
Example solution showing the error upon compilation
@Dan - This is actually a documentation bug (which they are looking at fixing now).
System.Drawing is not part of either the Unified Mobile or Unified XM 4.5 profiles.
If you need that functionality, you may want to look at using:
which implementing most of the API on top of CoreGraphics instead of on libdgiplus, which caused significant pain to our users in the past (which is what Classic uses).
is a library that contains definitions of Point/Color and the like which also may be useful if that is all you need.
Thanks for the bug report though (with a repro case even!)