Bug 15408 - [Visual Studio] System.Windows reference missing in PCL project
Summary: [Visual Studio] System.Windows reference missing in PCL project
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: 7.0.6
Assignee: Martin Baulig
Depends on:
Reported: 2013-10-15 11:04 UTC by Allie Miller
Modified: 2013-12-17 10:02 UTC (History)
3 users (show)

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

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:

Description Allie Miller 2013-10-15 11:04:17 UTC
After creating a PCL project in Visual Studio where a BaseViewModel implements INotifyDataErrorInfo,  creating an iOS project in the same solution, linking to the infrastructure project with said BaseViewModel causes the error:

The type 'System.ComponentModel.INotifyDataErrorInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.

System.Windows is not available to add a reference. The System.Windows reference is missing when creating a fresh Xamarin.iOS project in Visual Studio as well. 

Versioning information:

=== Xamarin Studio ===

Version 4.0.12 (build 3)
Installation UUID: e87d5e23-defc-4b93-9ee5-37011ddb1075
Mono 3.2.3 ((no/8d3b4b7)
GTK 2.24.20
GTK# (
Package version: 302030000

=== Apple Developer Tools ===

Xcode 5.0 (3332.25)
Build 5A1413

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Version: 4.8.1 (Starter Edition)
Android SDK: /Users/XXXX/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.2 (API level 17)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 4cfca2f
Build date: 2013-20-09 23:14:32-0400

=== Build Information ===

Release ID: 400120003
Git revision: 593d7acb1cb78ceeeb482d5133cf1fe514467e39
Build date: 2013-08-07 20:30:53+0000
Xamarin addins: 25a0858b281923e666b09259ad4746b774e0a873

=== Operating System ===

Mac OS X 10.8.5
Darwin XXX-MacBook-Pro.local 12.5.0 Darwin Kernel Version 12.5.0
Sun Sep 29 13:33:47 PDT 2013
root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 1 Martin Baulig 2013-11-06 12:42:00 UTC
This should be fixed in the latest alpha builds.
Comment 2 PJ 2013-12-11 18:45:46 UTC
This fix is planned to be released with Xamarin.iOS 7.0.6, which should hit the beta channel before December 23rd.
Comment 3 Sadik Ali 2013-12-17 10:02:51 UTC
I have verified this issue, following are the verified steps:

1. Created a PCL project in Visual Studio.
2. Created a sample iOS project.
3. Right click on "References" and click on add references option.
4. Observed that "System.Windows" is available in Framework assembly list.

Refer screen shot : http://screencast.com/t/9mrVeChHQIX
Checked With:
Win 7
VS 2013, 2012
X.iOS 1.10.30