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.
This was working, then I updated to Xamarin 4.10, now I get
Error CS0012: The type `System.Func`3<TinyIoC.TinyIoCContainer,TinyIoC.NamedParameterOverloads,RegisterType>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Core, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089' (CS0012)
My project no longer compiles.
It seems every time I update Xamarin, I lose at least a day to trying to fix breakages.
I'm experiencing a similar issue after updating to Xamarin 4.0.10
I have a reference to an assembly that references System.Xml
When trying to build my application I get the following error:
Error CS0012: The type `System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Xml, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' (CS0012)
The error message is correct (unless you already have the reference in your project). Just follow what the compiler says and the project should compile without error.
Just to clarify - I already have a reference to System.Core in my project, its a reference to Xamarin's System.Core version 126.96.36.199.
Should I be removing the Xamarin version and adding one to a Mono desktop one? Where am I supposed to get this "System.Core 188.8.131.52"?
Why was this working just fine for the last month, and now no longer works after updating XS?
Either something was wrong before, or something is wrong now...
Some clarification from my part too - I have a .NET class library that references System.XML.dll from the .NET framework. This project is then referenced in a Xamarin.iOS project.
I managed to fix the compilation error by removing the reference to the Mono System.XML.dll (on my Xamarin.iOS project) and referencing the System.XML.dll from the .NET Framework Client profile I copied over from a Windows machine.
Still, this is a very weird error since everything worked seamlessly before the 4.0.10 Xamarin Studio update.
Hope this information proves helpful.
In both cases you are using assemblies which have full .net framework references not the one from Xamarin.iOS
System.Core, Version=184.108.40.206, Culture=neutral,PublicKeyToken=b77a5c561934e089
System.Core, Version=220.127.116.11, Culture=neutral,PublicKeyToken=7cec85d7bea7798e
System.Xml, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Xml, Version=22.214.171.124, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
Note public key token difference.
You can either add both references to your project (quite weird) or recompile your reference to use Xamarin.iOS assembly instead of .NET assembly.
Thanks for the info -
Why did this work before updating XS?
The check was not done in Mono 2.10 compiler which older version of Xamarin.iOS used but it's included in Mono 3.2 compiler and it's now consistent with Xamarin.Android.
The KB page for Xamarin.Android which now applied to Xamarin.iOS too is
*** Bug 13513 has been marked as a duplicate of this bug. ***
I'm facing the same problem. Looks like my problem is the ServiceStack dlls. I want to recompile them so they work, but everything in my Edit References looks good. The project is an assembly with Mono/.NET 3.5. The references that ServiceStack.Common uses are all listed as "mono" in the Package column, but have different versions like System 126.96.36.199 and System.Core 188.8.131.52. How do I:
a) Know what the offending assemblies are?
b) Update the reference to the good one?
I think I have it now, thanks to Brendan in support.
The problem IS that the assembly is a Mono/.NET 3.5 assembly. I had to go to all of my referenced assemblies and turn them in to an iOS project. The way I went about doing that was to edit the csproj and add/replace the ProjectTypeGuid element to look like this (based on what a brand new iOS csproj looked like at the time I did this):
After rebuilding all of my referenced assemblies with this, the project now compiles correctly.
Ooh feature request!!!!
Context menu on Project node "Convert to iOS Project"