Bug 6008 - xbuild can build projects with paths in Include attribute of References, but MonoDevelop cannot
Summary: xbuild can build projects with paths in Include attribute of References, but ...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-07-06 12:06 UTC by Jimm Domingo
Modified: 2015-08-21 05:56 UTC (History)
2 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 Jimm Domingo 2012-07-06 12:06:58 UTC
I have a VS2008 solution with two C# projects.  Both projects refer to external libraries (assemblies) which are located in a sub-folder (e.g., "../third-party/Foo.Bar.dll").  These references have paths in their Include attribute:

  <Reference Include="../third-party/Foo.Bar.dll" />

but MonoDevelop displays this message for each of those references:

  Assembly not available for Mono / .NET 2.0 (in Mono 2.10.9)

MonoDevelop cannot build the solution; however, the solution can be built on the command-line using xbuild.  Also, the solution can be built using Visual C# Express 2008.

If I edit the two project files and change these references to replace the paths in their Include attributes with HintPath elements:

  <Reference Include="Foo.Bar">

then MonoDevelop doesn't display the message above, and it's able to build the solution.

Not sure if this is a bug, or simply a known limitation.
Comment 1 Lluis Sanchez 2015-08-21 05:56:25 UTC
MonoDevelop now uses xbuild to build projects, so this should not be an issue anymore.