I'm trying to understand why I'm getting the following errors when running tests in Xamarin Studio 5.9.1 (build 3) on OS X.
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
System.TypeLoadException : A type load exception has occurred.
All projects build successfully and the same tests run just fine in Visual Studio on Windows using the same solution.
I am seeing a warning when building the test project on OS X, despite having already installed and added the reference.
All projects referencing MyProject.fsproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
It is more a code editor with a little extra (like type checking and building). Xamarin Studio is a quite capable IDE, but is less configurable than Visual Studio. Also, it is focused more on Xamarin development, and less on general C# development.
The primary software/program used for Xamarin cross platform development is Microsoft's Visual Studio. Visual Studio is classified as an Integrated Development Environment (IDE) that is used to build Xamarin apps. So, it has all the functionality you would need to build, debug and publish apps.
The Xamarin Platform is based on Mono. Mono is the original open source and cross-platform implementation of . NET, from the community Mono Project.
Xamarin is a . NET developer platform made up of tools, programming languages, and libraries for building many different types of applications. Xamarin supplies add-ins to Microsoft Visual Studio that allows developers to build Android, iOS, and Windows apps within the IDE using code completion and IntelliSense.
I still don't know why Xamarin behaves differently than Visual Studio, but the root cause was that the test project was targeting .Net 4.5 whereas the main project was targeting .Net 4.0
Thanks to @7sharp9 for the help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With