Bug 22135 - Binding projects cannot reference other assemblies or projects
Summary: Binding projects cannot reference other assemblies or projects
Status: RESOLVED DUPLICATE of bug 23674
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 8.0.0
Hardware: All All
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-08-15 13:23 UTC by Matthew Leibowitz
Modified: 2014-10-17 04:06 UTC (History)
7 users (show)

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

Test Project (21.02 KB, application/zip)
2014-08-19 10:18 UTC, Saurabh

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 Matthew Leibowitz 2014-08-15 13:23:23 UTC
If I create a binding project, building that binding ignores project and assembly references. It only includes monotouch.dll.

 - create a binding project
 - create a normal class library and some type inside
 - reference the class library from the binding
 - make use of the type inside the normal project
 - Build Fails.

If i use the command line and add the -r:XXX.dll to the end, it can build.
Comment 1 Saurabh 2014-08-19 10:18:56 UTC
Created attachment 7720 [details]
Test Project

I am also able to reproduce this Issue using steps given in this issue It is showing me error "/Users/nischal/Projects/TestBindingsTest/TestBindingsTest/ApiDefinition.cs(7,7): Error CS0246: The type or namespace name `TestClass' could not be found. Are you missing an assembly reference? (CS0246) (TestBindingsTest)"

=== Xamarin Studio ===

Version 5.3 (build 428)
Installation UUID: 2591d519-875d-4afe-a3d9-5fcf391bbd2d
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

=== Apple Developer Tools ===

Xcode 4.6.3 (2068)
Build 4H1503

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 141adb9
Build date: 2014-08-15 12:54:28-0400

=== Xamarin.Android ===

Version: 4.16.0 (Enterprise Edition)
Android SDK: /Users/nischal/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 503000428
Git revision: 3166b1cd326fbea84dcf024e73cb31ccc83a9811
Build date: 2014-08-15 14:50:33-04
Xamarin addins: 3d041b1639f938107c5e1c71c54d9a346b30c660

=== Operating System ===

Mac OS X 10.7.4
Darwin nischals-Mac-mini.local 11.4.0 Darwin Kernel Version 11.4.0
    Mon Apr  9 19:32:15 PDT 2012
    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

I am attaching my project as well
Comment 2 Jeffrey Stedfast 2014-10-16 15:47:29 UTC
I don't know MSBuild well enough to have any hope of figuring this one out so I've Cc'd Daniel.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2014-10-17 04:06:45 UTC

*** This bug has been marked as a duplicate of bug 23674 ***