Bug 58479 - Xamarin.Mac Extenions result in compile error: The OutputPath property is not set for project
Summary: Xamarin.Mac Extenions result in compile error: The OutputPath property is not...
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: MSBuild ()
Version: 3.4.0 (15.2)
Hardware: Macintosh Mac OS
: High critical
Target Milestone: 15.4
Assignee: Ankit Jain
: 57495 ()
Depends on:
Reported: 2017-07-29 13:20 UTC by jeroen.bernsen
Modified: 2017-08-04 11:13 UTC (History)
7 users (show)

Is this bug a regression?: Yes
Last known good build: 15.1 (xbuild works)

Buildlog for extension sample (79.24 KB, text/plain)
2017-07-31 15:23 UTC, jeroen.bernsen
Extension sample (472.47 KB, application/zip)
2017-08-04 11:13 UTC, Jacky Waswani

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 jeroen.bernsen 2017-07-29 13:20:07 UTC
I have a Xamarin.Mac project and I added an Today Extension. After adding the extension project the host project no longer builds result in the following error:

/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error: The OutputPath property is not set for project 'TodayExtension.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x86'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. (ExtensionSamples)

At first I thought I might be doing something wrong so I downloaded the example project for Mac Extensions (https://developer.xamarin.com/samples/mac/ExtensionSamples/) and after fixing some signing issues it resulted in the same error: "The OutputPath property is not set for project...". Please advise how to proceed because I really need to build a Mac Today extension. Since the example provided by Xamarin also fails I think it is a Xamarin bug.

My environment is latest Visual Studio for Mac. See details below:

Visual Studio Community 2017 for Mac
Version 7.0.1 (build 24)
Installation UUID: c267e52d-f329-45c3-8c20-31e921fde950
	Mono (2017-02/5077205) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 500010001


.NET Core
Runtime: /usr/local/share/dotnet/dotnet
SDK: /usr/local/share/dotnet/sdk/1.0.3/Sdks
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Sdks

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 8.3.3 (12175.1)
Build 8E3004b

Version: (Visual Studio Community)
Android SDK: /Users/jeroenbernsen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)
		7.1 (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:

Version: (Visual Studio Community)

Version: (Visual Studio Community)
Hash: d2270eec
Branch: d15-2
Build date: 2017-05-22 16:30:53-0400

Xamarin Inspector
Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

Build Information
Release ID: 700010024
Git revision: 7ab1ca2ced6f584e56b7a0d4d321d00775cd95c9
Build date: 2017-05-19 05:44:51-04
Xamarin addins: 08d17158f3365beee5e60f67999e607cce4b3f93
Build lane: monodevelop-lion-d15-2

Operating System
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Comment 1 Chris Hamons 2017-07-31 14:40:24 UTC
Please attach the full build log.
Comment 2 jeroen.bernsen 2017-07-31 15:23:53 UTC
Created attachment 23911 [details]
Buildlog for extension sample
Comment 3 jeroen.bernsen 2017-07-31 15:24:16 UTC
See attachment
Comment 4 Chris Hamons 2017-07-31 18:47:05 UTC
Thanks for the attachment. I was able to verify that this is a duplicate of a bug we've been tracking internally.

As a short term work around, you can change Preferences -> Projects -> Builds -> "Build with MSBuild instead of xbuild" to false and restart VSfM.
Comment 5 Chris Hamons 2017-07-31 18:47:35 UTC
*** Bug 57495 has been marked as a duplicate of this bug. ***
Comment 6 jeroen.bernsen 2017-08-01 11:52:06 UTC
Thanks a lot, the short term work around works for me. Now I got one step further but I run into the next problem, see bug 58521. I hope you can help with that as well.
Comment 7 Ankit Jain 2017-08-01 15:32:39 UTC
PR: https://github.com/xamarin/xamarin-macios/pull/2396
Comment 8 Rolf Bjarne Kvinge [MSFT] 2017-08-03 07:05:23 UTC
d15-4 PR: https://github.com/xamarin/xamarin-macios/pull/2413
Comment 9 Jacky Waswani 2017-08-04 11:12:52 UTC
Have verified the bug with latest 15.4 build. Issue is seems to be fixed.

Verified on:
VSFM Version 7.2 Preview (7.2 build 496)
Mono (2017-04/161f032) (64-bit)
Xamarin.Mac Version:
Xamarin.iOS Version:
Xamarin.Android Version:

Tested it on sample provided.
Attaching the sample for more info.
Comment 10 Jacky Waswani 2017-08-04 11:13:19 UTC
Created attachment 24028 [details]
Extension sample