[Xamarin.Android.Build.Tasks] [Cycle 7, VS 2013 only] "'System.ComponentModel.INotifyPropertyChanged' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ObjectModel" for Android projects that reference PCLs that use INotifyPropertyChange
#71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41665
Xamarin.Android makes use of Java.Interop which relies on System.Runtime.dll.
However it seems that while VS2015 is great at auto picking up that
fact VS2013 is not. The task RefolveAssemblyReference (according to the docs)
does NOT set $(DependsOnSystemRuntime) when in the VS2013 tool chain.
As a result none of our custom PCL Facades tasks were running.
Adding the reference to System.ObjectModel.dll just hides the problem.
If a different assembly was required you'd end up with and error for that too.
The fix is to manually set $(DependsOnSystemRuntime) in our build targets.
Since we rely on System.Runtime now anyway it should be have any impact other
than to keep VS2013 happy.