Bug 41254 - Getting build error on creating Archive for F# android application.
Summary: Getting build error on creating Archive for F# android application.
Status: RESOLVED DUPLICATE of bug 24709
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: unspecified
Hardware: PC Mac OS
: High major
Target Milestone: 6.1 (C7)
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2016-05-23 12:51 UTC by Rajneesh Kumar
Modified: 2016-05-23 20:07 UTC (History)
3 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:
RESOLVED DUPLICATE of bug 24709

Description Rajneesh Kumar 2016-05-23 12:51:42 UTC
Steps to reproduce:

1. Create a Fsharp Android Project.
2. Add new F# Lib project to this solution.
3. Set reference to Main project.
4. Right click on solution and click to Archive All.

Actual Result: Getting following build error: https://gist.github.com/Rajneesh360Logica/9831456a0be579fd136600cd93ad325d

Expected Result: Archive should create successfully.

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

Regression Status: REGRESSION: This issue doesn't exist with latest stable XA 6.0.4.0 .

Workaround: On commenting two lines these shows error in Resource.Designer.cs file, archive create successfully.
Screencast: http://www.screencast.com/t/tV5mqp2kq2T

Ide Logs: https://gist.github.com/Rajneesh360Logica/0bec09bc28238482fb5250b1c9fe79c1
Build Output: https://gist.github.com/Rajneesh360Logica/1e8f450aa12ca00acc92a63b2a17683b

Environemnt Info:

=== Xamarin Studio Enterprise ===

Version 6.0 (build 5166)
Installation UUID: 229ec167-a154-47bf-bb8b-10fe36c1ad41
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/0f5fdf2) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000168

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.iOS ===

Version: 9.8.0.319 (Xamarin Enterprise)
Hash: 7b89851
Branch: cycle7
Build date: 2016-05-20 16:56:02-0400

=== Xamarin.Android ===

Version: 6.1.0.69 (Xamarin Enterprise)
Android SDK: /Users/360_macmini/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.1.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.3

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

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.8.0.319 (Xamarin Enterprise)

=== Build Information ===

Release ID: 600005166
Git revision: ec4f06cfaa9debdca2539e19edeafffe88ccd0cc
Build date: 2016-05-20 18:51:15-04
Xamarin addins: c7761d054f38e9a210822aba6356398af0c36fa9
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.11.4
Darwin 360-MACMINIs-Mac-mini.local 15.4.0 Darwin Kernel Version 15.4.0
    Fri Feb 12 15:56:47 PST 2016
    root:xnu-3248.40.183~6/RELEASE_X86_64 x86_64
Comment 1 Jonathan Pryor 2016-05-23 16:45:49 UTC
For starters, `end` being generated is a duplicate of Bug #24709, which we attempted to fix by upgrading FSharp.CodeDom.Compiler, but upgrading FSharp.CodeDom.Compiler introduced different bugs (Bug #39520), so we reverted that upgrade, which re-introduces Bug #24709...

We're unlikely to be able to fix Bug #24709, as Bug #39520 is far worse.

Additionally, your repro instructions are incomplete. I'm able to follow them, and get a project which doesn't fail to build.

I *think* that the missing piece is in:

> 2. Add new F# Lib project to this solution.

At 0:06 seconds in the screencast, I see that there are 2 packages present in the FSharpArchive project. However, that tree node isn't expanded, so I don't know what those packages are.

I would assume that one of those packages is providing the `end` resource, and if you removed that package you would fix the build error.
Comment 2 Rajneesh Kumar 2016-05-23 17:56:42 UTC
I have checked this issue again, and now I have deleted XamarinAndroid.Support.v7.AppCompat packages and try to build the application, I observed that its build and archive create successfully.

Screencast: http://screencast.com/t/m6PhTi28RYI

Please let me know that if I have to check something else ?

Thanks..!