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.
Tried with MonoTouch 6.0.4 / MonoDevelop 188.8.131.52 and MonoTouch 6.0.6 / MonoDevelop 3.0.5.
error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.NullReferenceException: Object reference not set to an instance of an object
at MTouch.Main2 (System.String args) [0x00000] in <filename unknown>:0
at MTouch.Main (System.String args) [0x00000] in <filename unknown>:0
Steps to reproduce:
1. Check out: https://github.com/scarnie/MvvmCross
2. Ensure you're on vNext branch (default)
3. Open MvvmCross_All solution
4. Ignore errors for Android and Windows builds
5. Find the Tutorial.UI.Touch project
6. RMB and Build
This error will occur.
There's a reference to System.Windows (which MonoTouch doesn't have).
Does removing that reference fix the problem for you?
There is a type forwarding assembly in the solution. The project is called System.Windows.Touch, which generates System.Windows.dll. If I remove the missing one it does indeed compile correctly.
Closing this then.
We've already implemented better error reporting, for later releases we'll tell you what's wrong instead of throwing a NullReferenceException.