Howdy,
Zoiks... I'm in a day 2 of trying to get my Xamarin.Forms.Android project to build. Upon the last update of Xamarin and my project Nugets, I now can't get the release mode of my project to build and deploy. This is a SUPER frustrating experience and its not the first time its happen in my close to a year of using Xamarin and associated Nuget's (You get what you pay for). The tracking down of this problem has created NOTHING but dead ends for me. So, I'm going to do a complete posting here, as I go through this exercise, to actually understand what the crap is going wrong, how to figure it out and how to fix it. I believe this will have me downloading Git repositories and compiling them myself to track down the issues, but fingers crossed hopefully not. Config info:
My current Visual Studio Config
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51650
Installed Version: Professional
LightSwitch for Visual Studio 2013 06177-004-0446025-02090
Microsoft LightSwitch for Visual Studio 2013
Team Explorer for Visual Studio 2013 06177-004-0446025-02090
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06177-004-0446025-02090
Microsoft Visual Basic 2013
Visual C# 2013 06177-004-0446025-02090
Microsoft Visual C# 2013
Visual C++ 2013 06177-004-0446025-02090
Microsoft Visual C++ 2013
Visual F# 2013 06177-004-0446025-02090
Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker 06177-004-0446025-02090
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Windows Phone SDK 8.0 - ENU 06177-004-0446025-02090
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.21010.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
License Header Manager 1.5.0
An extension for automatically inserting license information file headers.
Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone
Build
Microsoft Azure Mobile Services Tools 1.3
Microsoft Azure Mobile Services Tools
NuGet Package Manager 2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2013 ENU 12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU
PowerShell Tools 1.3
Provides file classification services using PowerShell
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 12.0.41012.0
Microsoft SQL Server Data Tools
Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Xamarin 3.9.547.0 (20fd2f0)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 4.20.2.1 (86274adfc6418b4c3a9d67734eb871163859b51c)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 8.9.1.0 (02a05754f85064ec222c8a1a975761debfe7122d)
Visual Studio extension to enable development for Xamarin.iOS.
Xamarin.iOS Unified Migration 1.0
Automated migration for Xamarin iOS Classic projects to Unified
The compiler warning I'm getting that is stopping deployment in Release Mode. Adding this to the app.config, makes no difference.
Warning 2 Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="SimpleInjector" culture="neutral" publicKeyToken="984cb50dea722e99" /><bindingRedirect oldVersion="0.0.0.0-2.7.3.0" newVersion="2.7.3.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Primitives" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.ServiceModel.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Requests" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.ServiceModel.Primitives" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /></dependentAssembly></assemblyBinding>
All of the Nugets in my project:
Main PCL:
<package id="Acr.XamForms.Mobile" version="2.0.4" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="Acr.XamForms.UserDialogs" version="3.0.4" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="ExifLib.PCL" version="1.0.0" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="portable-net45+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
<package id="SimpleInjector" version="2.7.3" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="SQLite.Net-PCL" version="2.5.1" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="SQLiteNetExtensions" version="1.2.5" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="Xamarin.Forms" version="1.4.2.6355" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="Xamarin.Insights" version="1.9.1.107" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="XLabs.Core" version="2.0.5575" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="XLabs.IoC" version="2.0.5575" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="XLabs.IoC.SimpleInjector" version="2.0.5575" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
<package id="XLabs.Platform" version="2.0.5575" targetFramework="portable-net45+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
Android Project:
<package id="Acr.XamForms.Mobile" version="2.0.4" targetFramework="MonoAndroid50" />
<package id="Acr.XamForms.UserDialogs" version="3.0.4" targetFramework="MonoAndroid50" />
<package id="ExifLib.PCL" version="1.0.0" targetFramework="MonoAndroid50" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="MonoAndroid50" />
<package id="SimpleInjector" version="2.7.3" targetFramework="MonoAndroid50" />
<package id="SQLite.Net.Platform.XamarinAndroid" version="2.5.1" targetFramework="MonoAndroid50" />
<package id="SQLite.Net-PCL" version="2.5.1" targetFramework="MonoAndroid50" />
<package id="SQLiteNetExtensions" version="1.2.5" targetFramework="MonoAndroid50" />
<package id="Xamarin.Android.Support.v13" version="22.0.0.0" targetFramework="MonoAndroid50" />
<package id="Xamarin.Android.Support.v4" version="22.0.0.0" targetFramework="MonoAndroid50" />
<package id="Xamarin.Forms" version="1.4.2.6355" targetFramework="MonoAndroid50" />
<package id="Xamarin.Insights" version="1.9.1.107" targetFramework="MonoAndroid50" />
<package id="xamstore-xamarin.auth" version="1.2.2" targetFramework="MonoAndroid50" />
<package id="XLabs.Core" version="2.0.5575" targetFramework="MonoAndroid50" />
<package id="XLabs.IoC" version="2.0.5575" targetFramework="MonoAndroid50" />
<package id="XLabs.IoC.SimpleInjector" version="2.0.5575" targetFramework="MonoAndroid50" />
<package id="XLabs.Platform" version="2.0.5575" targetFramework="MonoAndroid50" />
From the output of a release compile, I get this, which seems the best clue so far...
Consider app.config remapping of assembly "SimpleInjector, Culture=neutral, PublicKeyToken=984cb50dea722e99" from Version "2.7.2.0" [] to Version "2.7.3.0" [C:\code\Journyx\Mobile 3.0\mobile\trunk\packages\SimpleInjector.2.7.3\lib\portable-net4+sl4+wp8+win8+wpa81\SimpleInjector.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.Net.Primitives, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "3.9.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Net.Primitives.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.ServiceModel.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "3.9.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ServiceModel.Http.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.Net.Requests, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "3.9.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Net.Requests.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.ServiceModel.Primitives, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "3.9.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ServiceModel.Primitives.dll] to solve conflict and get rid of warning.
PLEASE, if you see something obvious that I'm missing, please let me know. Visual Studio, Xamarin and all Nugets are updated to latest versions.