[Mono-dev] Building from the command line with mdtool or xbuild
Martin Potter
Martin.Potter at faithlife.com
Mon Aug 17 23:37:13 UTC 2015
I am trying to upgrade to a more recent version of Mono and am running into issues when building from the command line. I have been using Xamarin Studio's (MonoDevelop) mdtool until this point, but since the 4.0 release of Mono it now throws an error:
FATAL ERROR [2015-08-17 10:14:27Z]: System.NullReferenceException: Object reference not set to an instance of an object
Server stack trace:
at System.Globalization.DateTimeFormatInfo.InitializeOverridableProperties (System.Globalization.CultureData cultureData, Int32 calendarID) <0x106bf44d0 + 0x000ff> in <filename unknown>:0
at System.Globalization.DateTimeFormatInfo.OnDeserialized (StreamingContext ctx) <0x106bf46c0 + 0x00122> in <filename unknown>:0
at System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent () <0x106c967c0 + 0x00045> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) <0x106c82160 + 0x002f5> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) <0x106c7c5a0 + 0x00165> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) <0x106c7c560 + 0x0002d> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, Boolean fCheck) <0x106c7c480 + 0x00023> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) <0x106c7c4b0 + 0x0001b> in <filename unknown>:0
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage (IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) <0x109371670 + 0x0046c> in <filename unknown>:0
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x001e9] in /private/tmp/source-mono-mac-3.12.99-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.1/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:249
Since xbuild is supposed to be the newer way to compile from the command line, I tried to compile using that instead. While the solution compiles, there seems to be a bug in how xbuild evaluates conditions for some items of referenced projects which results in some files from the build output not being copied. I have filed a bug for that https://bugzilla.xamarin.com/show_bug.cgi?id=33082 but would appreciate any insight as to where to even start looking.
- Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150817/71ed79ca/attachment.html>
More information about the Mono-devel-list
mailing list