Bug 27860 - Xamarin.Mac Unified API Application referencing PCL project and Microsoft.Bcl.Build Nuget package fails to build: Error executing task DetectSigningIdentityTask: Required property 'AppManifest' not set.
Summary: Xamarin.Mac Unified API Application referencing PCL project and Microsoft.Bcl...
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: MSBuild ()
Version: 1.12.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 2.4.0 (C6)
Assignee: Chris Hamons
Depends on:
Reported: 2015-03-10 22:13 UTC by Ian Kozhurin
Modified: 2015-09-29 12:54 UTC (History)
4 users (show)

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

Sample application (74.62 KB, application/zip)
2015-03-10 22:13 UTC, Ian Kozhurin

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 Ian Kozhurin 2015-03-10 22:13:48 UTC
Created attachment 10264 [details]
Sample application

Steps to reproduce.
1. Create C# Unified API Xamarin.Mac Application project
2. Add a Nuget package Microsoft.Bcl.Build
3. In the same solution create a C# Portable library and add reference to it to Unified API Application project
4. Try to build Application

Expected result: Application builds
Observed result: Application fails to build with an error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.Common.targets: Error: Error executing task DetectSigningIdentityTask: Required property 'AppManifest' not set.

The error observed on Stable (Xamarin Studio Version 5.8 (build 443), Xamarin.Mac Version: (Business Edition)) and Beta channels (Xamarin Studio Version 5.8 (build 443), Xamarin.Mac Version: (Business Edition)). Alpha channel has no new versions available at the moment

Attached is a sample project.
Comment 1 Naqeeb 2015-03-11 07:24:22 UTC
I have checked this issue with the help of attached sample and able to reproduce it successfully. To reproduce this issue I have followed steps given in bug description. On building the attached sample getting the same error as mention in bug description.

Screencast: http://www.screencast.com/t/Lepbvf2r
Ide log: https://gist.github.com/saurabh360/c2feebc4d76ef0046e58
Build Output: https://gist.github.com/saurabh360/45581e87dfc7679dc8a2

Environment info:
=== Xamarin Studio ===

Version 5.9 (build 171)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 4.0.0 ((detached/7f27bd7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000049

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 283a3f2
Branch: master
Build date: 2015-03-05 01:59:36-0500

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		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)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509000171
Git revision: a953c3342b9c8aab43bd5e67119d1a3439ddcc08
Build date: 2015-03-09 12:37:56-04
Xamarin addins: 76a6f0bdd3cecbf0960abefe1ce18661729ec693

=== Operating System ===

Mac OS X 10.10.0
Darwin Jatin66s-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Chris Hamons 2015-03-16 13:52:42 UTC
Can you please try Version: which is in the Alpha/Beta now. I believe this fixes that issue.
Comment 3 John Miller [MSFT] 2015-03-19 19:06:56 UTC
I have a report of this happening with as well.
Comment 5 Chris Hamons 2015-03-20 12:04:10 UTC
The root cause for this issue is this line in your csproj:

  <Import Project="packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" />

It is stomping all over our build targets and is giving you an incomplete build. If you open your csproj in a text editor and remove that line everything should work.

We have people looking to what actions specifically add that to your project (nuget)? I'll keep this open until I have more information.
Comment 6 Chris Hamons 2015-03-20 12:04:33 UTC
This is an issue with iOS in some cases as well apparently.
Comment 7 Ian Kozhurin 2015-03-20 12:10:10 UTC
It was nuget. The whole project was build in Xamarin on Mac. First I created the Unified API project, then added the portable library project, then added Bcl package through Nuget. I was trying to figure out what is going on and looking for the minimal problematic configuration. As I remember the issue wasn't there until I added PCL library (which is a common case for our solution).
Comment 8 Chris Hamons 2015-03-20 13:22:27 UTC
Here's the bug in question: