Bug 24581 - Extension compilation problem. ReferenceOutputAssembly csproj's tag issue
Summary: Extension compilation problem. ReferenceOutputAssembly csproj's tag issue
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 8.4.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 8.6.0
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-11-17 11:37 UTC by Rustam Zaitov
Modified: 2014-12-18 12:52 UTC (History)
6 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Rustam Zaitov 2014-11-17 11:37:35 UTC
After I add asm ref to Extension project I can find new <ReferenceOutputAssembly> tag within AppContainer csproj file.
Looks like this tag break the extension compilation process. I mean Extension executable doesn't copy to Plugins folder within AppContainer package.
I found this within XS Version 5.7 (build 435). Meanwhile XS 5.2.6 (current Alpha) works fine.

Step to reproduce:
* open PhotoFilter sample from here https://github.com/xamarin/monotouch-samples/tree/master/ios8/PhotoFilter
* remove asm ref to PhotoFilterExtension project from PhotoFilter project
* Add asm ref to extension project back.
* show diff

Here new tag appears (ReferenceOutputAssembly). With this tag AppContainer (PhotoFilter.app) doesn't contain any extension (no Plugins folder inside). If you manually remove ReferenceOutputAssembly tag from csproj file and compile solution again you will be able to see Plugins folder with appex file inside (expected behaviour).

What is a problem – ReferenceOutputAssembly itself or XS treats it incorrectly for extension projects?
Comment 1 Jeffrey Stedfast 2014-11-25 15:59:29 UTC
Works fine for me.
Comment 2 Jeffrey Stedfast 2014-11-25 16:01:40 UTC
Also: removing and then re-adding the PhotoFilterExtension reference makes 0 changes according to git diff.
Comment 3 Jeffrey Stedfast 2014-12-09 16:20:02 UTC
I was finally able to reproduce this with the XS 5.7 alpha

I've fixed this in git master but my patch did not make it in time for the alpha.
Comment 4 GouriKumari 2014-12-09 16:32:33 UTC
I am changing the target milestone to 8.6.0.
Comment 5 Udham Singh 2014-12-18 12:52:47 UTC
I have checked this issue with following builds

Mac OS X 10.9.4
Xamarin Studio 5.7 (build 657)
Mono 3.12.0 ((detached/a813491)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.1 (6602)
Xamarin.iOS 8.6.0.36 (Enterprise Edition)

I am getting expected behaviour, Hence closing this issue.

Screencast : http://www.screencast.com/t/Sh0b2TSD3X0