Bug 17833 - For new projects added to existing solutions, XamMac reference shows "Assembly not found for framework" until the solution is reloaded
Summary: For new projects added to existing solutions, XamMac reference shows "Assembl...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 5.0
Hardware: PC Mac OS
: --- major
Target Milestone: (C7)
Assignee: Chris Hamons
: 26061 ()
Depends on:
Reported: 2014-02-17 18:22 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-04-13 16:57 UTC (History)
12 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 Brendan Zagaeski (Xamarin Team, assistant) 2014-02-17 18:22:16 UTC
Might have the same underlying cause as bug #17234?

## Steps to reproduce

1. Create a new project of any kind.

2. Add a "Xamarin.Mac Project" or "Xamarin.Mac Library Project" to the solution.

## Result

The "References" for the newly added project includes "XamMac", but the reference is red, and has an error message:
> Assembly not found for framework Mono / .NET 4.0

## Workaround

Close and reopen the solution. The "XamMac" reference will now be black, and the compiler will find it successfully.

## Version information

Xamarin Studio 4.2.3 build 54
Xamarin.Mac 1.6.34, Xamarin.Mac 1.6.27
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2014-02-17 18:27:58 UTC
This issue is not present in Xamarin Studio 4.2.2 build 2.
Comment 2 Stephen Shaw 2014-04-25 11:54:03 UTC
I'm seeing this in Xamarin 3.0.

Xamarin Studio
Version 5.0 (build 765)
Installation UUID: 0e53ae91-920f-4242-b113-8b73e9800f5a
	Mono 3.4.0 ((no/585aa54)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000201

Comment 4 Jon Goldberger [MSFT] 2014-04-30 20:43:51 UTC
Also I am seeing this in Xamarin Studio v 5.0

My version info:

=== Xamarin Studio ===

Version 5.0 (build 784)
Installation UUID: 2dc9022f-f9a8-424f-8284-bf224cbbfde0
	Mono 3.4.0 ((no/51469e6)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000202

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Android ===

Version: 4.12.4 (Business Edition)
Android SDK: /Users/apple/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)
		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)
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)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 865c609
Build date: 2014-04-29 00:45:34-0400

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 500000784
Git revision: ea367c9e829e7c627ec8927e8832df6a74390d61
Build date: 2014-04-29 09:48:53-04
Xamarin addins: 92dcfc8532a8c6d21783289c176417d7c17bf492

=== Operating System ===

Mac OS X 10.9.2
Darwin Jonathans-MacBook-Pro.local 13.1.0 Darwin Kernel Version 13.1.0
    Wed Apr  2 23:52:02 PDT 2014
    root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64
Comment 5 Joe Strout 2014-07-01 11:50:34 UTC
Seeing the same thing here, with the latest version of Xamarin Studio (5.1 build 479).

Steps to reproduce, and workaround, are exactly as described above.  I'm running Mac OS X 10.8.5.

While there is a workaround, once you find it, it's not at all obvious.
Comment 6 Chris Hamons 2014-12-05 16:36:15 UTC
I believe these are duplicates:


But don't want to close them until we have a fix for this and can test those specific test cases.
Comment 7 David Karlaš 2015-01-17 04:57:59 UTC
*** Bug 26061 has been marked as a duplicate of this bug. ***
Comment 9 Chris Hamons 2015-04-20 14:24:03 UTC
Fixed in master / 537789c3387da468a5fed98e3bb177dcdd676622
Comment 10 Chris Hamons 2015-04-20 14:24:33 UTC
This will be in the XS 6.0 release later this year.