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.
As reported at http://forums.xamarin.com/discussion/comment/4859/#Comment_4859
MonoMac apps do not run/debug with the current target runtime.
IIRC this is a regression, we used to use an env var to pass the runtime to the launch script.
MonoDevelop running on 2.10.9 with 3.0.3 installed works just fine. When MonoDevelop runs on 2.10.11 I get the error above.
fixed in git
Thank you. Does this effect Xamarin.Mac too? This is an active project so I'm hoping to get up and running as soon as possible.
Yea, it'll affect Xamarin.Mac, too.
Here's the latest internal build that you can use in the meantime:
Unfortunately I'm getting exactly the same thing with this build. I start debugging and get:
System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'Cirrious.MvvmCross.Mac'.
at CentraStage.Mac.AppDelegate..ctor () [0x00000] in /Users/kevinknoop/Projects/centrastage/mobileapps/src/CentraStage/CentraStage.UI.Mac/AppDelegate.cs:21
at at (wrapper dynamic-method) object.c0f2206b-1224-40a8-9ef7-5109ad9f3abb (intptr,MonoMac.ObjCRuntime.Selector) <IL 0x00028, 0x000ab>
at at (wrapper native-to-managed) object.c0f2206b-1224-40a8-9ef7-5109ad9f3abb (intptr,MonoMac.ObjCRuntime.Selector) <IL 0x00036, 0x0011f>
at at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string) <0x00003>
at at MonoMac.AppKit.NSApplication.Main (string) <IL 0x0000e, 0x0006b>
at CentraStage.Mac.MainClass.Main (string) [0x00006] in /Users/kevinknoop/Projects/centrastage/mobileapps/src/CentraStage/CentraStage.UI.Mac/Main.cs:14
Here is the application output at startup:
Loaded assembly: /Users/kevinknoop/Projects/centrastage/mobileapps/src/CentraStage/CentraStage.UI.Mac/bin/Debug/CentraStage.Mac.app/Contents/MonoBundle/CentraStage.Mac.exe
Loaded assembly: /Users/kevinknoop/Projects/centrastage/mobileapps/src/CentraStage/CentraStage.UI.Mac/bin/Debug/CentraStage.Mac.app/Contents/MonoBundle/MonoMac.dll [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/gac/System.Core/18.104.22.168__b77a5c561934e089/System.Core.dll [External]
Loaded assembly: ObjCImplementations [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/gac/Mono.Security/22.214.171.124__0738eb9f132ed756/Mono.Security.dll [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/gac/System.Drawing/126.96.36.199__b03f5f7f11d50a3a/System.Drawing.dll [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/gac/System/188.8.131.52__b77a5c561934e089/System.dll [External]
That's running with 2.10.11. Are you certain your target runtime is set to 3.0.x ?
Created attachment 3446 [details]
Created attachment 3447 [details]
I have attached 2 images.
If I create a new MonoMac or XamarinMac project and add the line below (target set to 3.0.3) I can reproduce the error straight away.
public override void FinishedLaunching (NSObject notification)
mainWindowController = new MainWindowController ();
The default target runtime can be overridden for a solution - Check the Project -> Target Runtime menu.
Today we have checked this issue with following environment:
X.S 4.0 - 2be9833ca58a68b3d64be96a40ab7e149647fed1
Mono 3.0.5 (master/5079328)
And we are successfully able to run/debug monomac application.
Changing the status to Verified.