Bug 16458 - Cannot build PCL project for Android, targets / MSBuild complains of missing references (.NET 4.0 / 4.5 confusion)
Summary: Cannot build PCL project for Android, targets / MSBuild complains of missing ...
Status: RESOLVED DUPLICATE of bug 16403
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.10.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-11-26 08:00 UTC by Chris Leow
Modified: 2014-10-02 05:22 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (10.69 KB, application/zip)
2014-01-13 17:47 UTC, Tom Gilder
Details
Test case 2 (89.01 KB, application/zip)
2014-01-14 19:48 UTC, Tom Gilder
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED DUPLICATE of bug 16403

Description Chris Leow 2013-11-26 08:00:21 UTC
I've got a PCL project working perfectly on iOS, but the same project doesn't build in Android due to a reference conflict.  I've attached a build log for inspection.

The PCL project (BlastOutApp.Core) is profile 78, and compiles and works on iOS fine.  It appears that somewhere, there's a reference to a .NET 4.0 assembly.

The only referenced assemblies to the Android project are some Xamarin components and a PCL:

ModernHttpClient
RestSharp
Google Play Services
ActionBarSherlock
Project BlastOutApp.Core (PCL profile 78)







Environment:

=== Xamarin Studio ===

Version 4.2.1 (build 1)
Installation UUID: 1b78c8cb-e7ba-4218-9e4c-d20322b4a2e1
Runtime:
	Mono 3.2.5 ((no/964e8f0)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302050000

=== Xamarin.Android ===

Version: 4.10.1 (Business Edition)
Android SDK: /Users/chrisleow/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.iOS ===

Version: 7.0.4.209 (Business Edition)
Hash: 23a0827
Branch: 
Build date: 2013-11-11 16:04:00-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 402010001
Git revision: 844a84fe0aa0cb5f986d4e3c4807a51487d07845
Build date: 2013-11-13 22:12:16+0000
Xamarin addins: 97e44e4863da6c479427794457637e75b3d22600

=== Operating System ===

Mac OS X 10.9.0
Darwin Chriss-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64













Build log:


Building: BlastOutApp.Core (Debug)

Build started 26/11/2013 12:58:50.
__________________________________________________
Project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/BlastOutApp.Core.csproj" (Build target(s)):
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target GenerateTargetFrameworkMonikerAttribute:
	Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
	
	Target CoreCompile:
	Skipping target "CoreCompile" because its outputs are up-to-date.
Done building project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/BlastOutApp.Core.csproj".

Build succeeded.
	 0 Warning(s)

Building: BlastOutApp.UI.Droid (Debug)

Build started 26/11/2013 12:58:50.
__________________________________________________
Project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/BlastOutApp.UI.Droid.csproj" (Build target(s)):
	
	Target _CheckProjectItems:
		CheckProjectItems Task
		  NativeLibraries:
		  JavaLibraries:
		  JavaSourceFiles:
	
	Target _ComputeAndroidAssetsPaths:
		  ResourceFiles:
		  IntermediateFiles:
	
	Target _GenerateAndroidAssetsDir:
	No output files were specified for target _GenerateAndroidAssetsDir, skipping.
	
	Target _ComputeAndroidResourcePaths:
		  ResourceFiles:
		    Resources/layout/Main.axml
		    Resources/values/Strings.xml
		    Resources/drawable/Icon.png
		  IntermediateFiles:
	
	Target _GenerateAndroidResourceDir:
	Skipping target "_GenerateAndroidResourceDir" because its outputs are up-to-date.
	
	Target _ResolveMonoAndroidSdks:
		MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
		MonoAndroid Binaries: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/
		Android Platform API level: 16
		TargetFrameworkVersion: v4.1
		Android NDK: /
		Android SDK: /Users/chrisleow/Library/Developer/Xamarin/android-sdk-mac_x86/
		Android SDK Build Tools: /Users/chrisleow/Library/Developer/Xamarin/android-sdk-mac_x86/build-tools/17.0.0/
		Java SDK: /usr/
	
	Target _ValidateAndroidPackageProperties:
		GetAndroidPackageName Task
		  ManifestFile: /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/Properties/AndroidManifest.xml
		  AssemblyName: BlastOutApp.UI.Droid
		  PackageName: BlastOutApp.UI.Droid
	
	Target _BuildDependencies:
		Project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/BlastOutApp.Core.csproj" (Build target(s)):
			
			Target PrepareForBuild:
				Configuration: Debug Platform: AnyCPU
			
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			
			Target GenerateTargetFrameworkMonikerAttribute:
			Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
			
			Target CoreCompile:
			Skipping target "CoreCompile" because its outputs are up-to-date.
		Done building project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/BlastOutApp.Core.csproj".
		
		Resolved library outputs: /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
	
	Target _ExtractLibraryProjectImports:
		  Assemblies: 
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.CrossCore.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.CrossCore.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.Fragging.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Localization.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.Support.v4.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.dll
		    ../Components/XamarinActionBarSherlock-4.4.0/lib/android/ActionBarSherlock.dll
		    ../Components/googleplayservices-13.0/lib/android/GooglePlayServicesLib.dll
		    ../Components/modernhttpclient-1.0.1/lib/android/ModernHttpClient.Android.dll
		    ../Components/modernhttpclient-1.0.1/lib/android/OkHttp.dll
		    ../Components/restsharp-104.1.0/lib/android/RestSharp.MonoDroid.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
		  Jars: 
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/OkHttp.Jars.okhttp-1.2.2-SNAPSHOT-jar-with-dependencies.jar
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/android-support-v4.jar
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/classes.jar
		  ResolvedResourceDirectories: 
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.File.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.Sqlite.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.CrossCore.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Binding.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid.Fragging/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ActionBarSherlock/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ModernHttpClient.Android/library_project_imports/res
		  ResolvedAssetDirectories: 
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.File.Droid/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.Sqlite.Droid/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.CrossCore.Droid/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Binding.Droid/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid.Fragging/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid/library_project_imports/assets
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ModernHttpClient.Android/library_project_imports/assets
		  ResolvedEnvironmentFiles: 
	
	Target _GetLibraryImports:
		  NativeLibraries: 
		  Jars: 
		    obj/Debug/__library_projects__/OkHttp.Jars.okhttp-1.2.2-SNAPSHOT-jar-with-dependencies.jar
		    obj/Debug/__library_projects__/android-support-v4.jar
		    obj/Debug/__library_projects__/classes.jar
		    obj/Debug/__library_projects__/ActionBarSherlock/library_project_imports/bin/classes.jar
		    obj/Debug/__library_projects__/Mono.Android.Support.v4/library_project_imports/android-support-v4.jar
		    obj/Debug/__library_projects__/OkHttp/library_project_imports/OkHttp.Jars.okhttp-1.2.2-SNAPSHOT-jar-with-dependencies.jar
	
	Target _CheckDuplicateJavaLibraries:
		  JavaSourceFiles:
		  JavaLibraries:
	
	Target _GetAdditionalResourcesFromAssemblies:
		  Assemblies: 
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.CrossCore.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.CrossCore.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.Fragging.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Localization.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.Support.v4.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.dll
		    ../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.dll
		    ../Components/XamarinActionBarSherlock-4.4.0/lib/android/ActionBarSherlock.dll
		    ../Components/googleplayservices-13.0/lib/android/GooglePlayServicesLib.dll
		    ../Components/modernhttpclient-1.0.1/lib/android/ModernHttpClient.Android.dll
		    ../Components/modernhttpclient-1.0.1/lib/android/OkHttp.dll
		    ../Components/restsharp-104.1.0/lib/android/RestSharp.MonoDroid.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
		  AdditionalAndroidResourcePaths: /Users/chrisleow/Documents/Projects/BlastOutApp/Components/googleplayservices-13.0/lib/android/13/content/google-play-services/libproject/google-play-services_lib
		  AdditionalJavaLibraryReferences: /Users/chrisleow/Documents/Projects/BlastOutApp/Components/googleplayservices-13.0/lib/android/13/content/google-play-services/libproject/google-play-services_lib/libs/google-play-services.jar
	
	Target _UpdateAndroidResgen:
	Skipping target "_UpdateAndroidResgen" because its outputs are up-to-date.
	
	Target _GenerateJavaDesignerForComponent:
		  AdditionalResourceDirectories: 
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.File.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.Sqlite.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.CrossCore.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Binding.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid.Fragging/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ActionBarSherlock/library_project_imports/res
		    /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ModernHttpClient.Android/library_project_imports/res
		Tool /Users/chrisleow/Library/Developer/Xamarin/android-sdk-mac_x86/build-tools/17.0.0/aapt execution started with arguments: package --non-constant-id -f -m -M /Users/chrisleow/Documents/Projects/BlastOutApp/Components/googleplayservices-13.0/lib/android/13/content/google-play-services/libproject/google-play-services_lib/AndroidManifest.xml -J obj/Debug/android/src -S obj/Debug/res/ -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.File.Droid/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Plugins.Sqlite.Droid/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.CrossCore.Droid/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Binding.Droid/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid.Fragging/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/Cirrious.MvvmCross.Droid/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ActionBarSherlock/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/obj/Debug/__library_projects__/ModernHttpClient.Android/library_project_imports/res -S /Users/chrisleow/Documents/Projects/BlastOutApp/Components/googleplayservices-13.0/lib/android/13/content/google-play-services/libproject/google-play-services_lib/res -I /Users/chrisleow/Library/Developer/Xamarin/android-sdk-mac_x86/platforms/android-16/android.jar --auto-add-overlay 
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target GenerateTargetFrameworkMonikerAttribute:
	Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
	
	Target CoreCompile:
		Tool /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/smcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/BlastOutApp.UI.Droid.dll Resources/Resource.designer.cs Properties/AssemblyInfo.cs Bootstrap/FilePluginBootstrap.cs Bootstrap/SqlitePluginBootstrap.cs Services/DroidDrawing.cs Services/DroidFacebookService.cs Services/DroidGeoLocationWatcher.cs Services/DroidLinkedInService.cs Services/DroidPlatform.cs Services/DroidTwitterService.cs Services/DroidWebClient.cs Views/BlastBoardsFragment.cs Views/HomeView.cs Views/UpcomingFragment.cs Views/Interfaces/IMainPresenter.cs Setup.cs SplashScreen.cs Helpers/MvxEventSourceSherlockActivity.cs Helpers/MvxEventSourceSherlockFragmentActivity.cs Helpers/MvxSherlockActivity.cs Helpers/MvxSherlockFragmentActivity.cs Helpers/MvxViewPagerFragmentAdapter.cs Helpers/MyActionBarDrawerToggle.cs DebugTrace.cs LinkerPleaseInclude.cs /target:library /define:"DEBUG;__MOBILE__;__ANDROID__;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__;__ANDROID_11__;__ANDROID_12__;__ANDROID_13__;__ANDROID_14__;__ANDROID_15__;__ANDROID_16__" /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.Droid.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.Droid.dll /reference:../Lib/MvvmCross/Droid/Cirrious.CrossCore.Droid.dll /reference:../Lib/MvvmCross/Droid/Cirrious.CrossCore.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.Droid.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Binding.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.Fragging.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Droid.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Localization.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Net.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.1/Mono.Android.Support.v4.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.File.dll /reference:../Lib/MvvmCross/Droid/Cirrious.MvvmCross.Plugins.Sqlite.dll /reference:../Components/XamarinActionBarSherlock-4.4.0/lib/android/ActionBarSherlock.dll /reference:../Components/googleplayservices-13.0/lib/android/GooglePlayServicesLib.dll /reference:../Components/modernhttpclient-1.0.1/lib/android/ModernHttpClient.Android.dll /reference:../Components/modernhttpclient-1.0.1/lib/android/OkHttp.dll /reference:../Components/restsharp-104.1.0/lib/android/RestSharp.MonoDroid.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll /reference:/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll /warn:4
Services/DroidDrawing.cs(13,35): error CS0012: The type `System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
		/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll (Location of the symbol related to previous error)
Services/DroidDrawing.cs(13,35): error CS0012: The type `System.IDisposable' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
		/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll (Location of the symbol related to previous error)
Services/DroidDrawing.cs(33,139): error CS0012: The type `System.ValueType' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
		/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll (Location of the symbol related to previous error)
Services/DroidGeoLocationWatcher.cs(54,37): error CS0012: The type `System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
		/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll (Location of the symbol related to previous error)
Services/DroidGeoLocationWatcher.cs(54,67): error CS0012: The type `System.Exception' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
		/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll (Location of the symbol related to previous error)
	Task "Csc" execution -- FAILED
	Done building target "CoreCompile" in project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/BlastOutApp.UI.Droid.csproj".-- FAILED
	
Done building project "/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/BlastOutApp.UI.Droid.csproj".-- FAILED

Build FAILED.
Errors:

/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.UI.Droid/BlastOutApp.UI.Droid.csproj (Build) ->
/Library/Frameworks/Mono.framework/Versions/3.2.5/lib/mono/4.0/Microsoft.CSharp.Targets (CoreCompile target) ->


---------------------- Done ----------------------

Build: 5 errors, 0 warnings
Comment 1 Chris Leow 2013-11-26 09:20:43 UTC
Have gone back to Profile 6 (which works) for the time being...

I'm not sure where the PCL assemblies are coming from in MonoAndroid... seems to be a different source than before.

Just quickly, here are the errors:

/warn:4
Services/DroidDrawing.cs(13,35): error CS0012: The type
`System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that
is not referenced. Consider adding a reference to assembly `System.ObjectModel,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       
/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
(Location of the symbol related to previous error)
Services/DroidDrawing.cs(13,35): error CS0012: The type `System.IDisposable' is
defined in an assembly that is not referenced. Consider adding a reference to
assembly `System.Runtime, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'
       
/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
(Location of the symbol related to previous error)
Services/DroidDrawing.cs(33,139): error CS0012: The type `System.ValueType' is
defined in an assembly that is not referenced. Consider adding a reference to
assembly `System.Runtime, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'
       
/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
(Location of the symbol related to previous error)
Services/DroidGeoLocationWatcher.cs(54,37): error CS0012: The type
`System.Object' is defined in an assembly that is not referenced. Consider
adding a reference to assembly `System.Runtime, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       
/Users/chrisleow/Documents/Projects/BlastOutApp/BlastOutApp.Core/bin/Debug//BlastOutApp.Core.dll
(Location of the symbol related to previous error)
Services/DroidGeoLocationWatcher.cs(54,67): error CS0012: The type
`System.Exception' is defined in an assembly that is not referenced. Consider
adding a reference to assembly `System.Runtime, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Comment 2 Tom Gilder 2013-12-04 13:15:01 UTC
I have the same problem: a Core PCL project (Profile 49) which works fine with iOS but referencing it from an Android project which also has MvvmCross referenced makes it blow up, same errors:

error CS0012: The type `System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Comment 3 Jonathan Pryor 2013-12-04 13:27:51 UTC
This is probably Bug #16403.

*** This bug has been marked as a duplicate of bug 16403 ***
Comment 4 Tom Gilder 2013-12-15 21:54:14 UTC
Could we have an idea as to what Bug #16403 is (as it's private), and when this is likely to be fixed please?

I've just run in to the exact same error, but in a unit test project. Thanks!
Comment 5 Jonathan Pryor 2013-12-16 13:51:00 UTC
@Tom: This isn't a Xamarin.Android bug, this is a Mono/xbuild+OS X bug. Fixing it will require a new system mono. I believe Mono 3.2.6 will include the fix, though I don't know offhand when 3.2.6 will be released to the beta or stable channels.
Comment 6 Saurabh 2014-01-13 14:13:22 UTC
We are trying to reproduce this issue, but not able to reproduce this issue.

Could you please attach the PCL project that gives build error with Android?
Comment 7 Tom Gilder 2014-01-13 17:47:07 UTC
Created attachment 5831 [details]
Test case

Test case with Android and PCL projects
Comment 8 Saurabh 2014-01-14 06:46:15 UTC
I have tried this with attached "MissingReferenceExample.Android" sample. I able to build and run this sample with following builds:

Mono 3.2.5 + XS 4.2.1/4.2.2 + X.Android 4.10.1
and
Mono 3.2.6 + XS 4.2.1/4.2.2 + X.Android 4.10.1

So, I am not getting any build error with builds(Mono 3.2.5 + XS 4.2.1/4.2.2 + X.Android 4.10.1) and not able to reproduce this issue.

Screencast: http://screencast.com/t/beZPVjx8Y
Comment 9 Tom Gilder 2014-01-14 09:18:10 UTC
I've just reinstalled all of Xamarin/Mono and it now builds fine. Something must have gone wrong with my installation.
Comment 10 Tom Gilder 2014-01-14 19:48:05 UTC
Created attachment 5838 [details]
Test case 2

What about this as a test case? This shows a problem I came up against building a test project when referencing MvvmCross.

I get two build errors:

  error CS0012: The type `System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

  error CS0012: The type `System.Collections.ObjectModel.ObservableCollection`1<T>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Comment 11 Jonathan Pryor 2014-01-15 12:27:32 UTC
@Tom: Is this on OS X or Windows? If OS X, you need to use Mono 3.2.6 or later for an xbuild fix (Bug #16403), and 3.2.6 is not yet in the stable channel.
Comment 12 Tom Gilder 2014-01-18 09:19:35 UTC
OS X. Just tried with 3.2.6, and it compiles. Good work, thanks :-)
Comment 13 lnimong 2014-10-02 05:22:57 UTC
and what if it's on Windows
I am having the same problem building an android app