Bug 10331 - [Xamarin.Android] Build Output is triggered automatically on creating an android project from any template
Summary: [Xamarin.Android] Build Output is triggered automatically on creating an andr...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: Trunk
Hardware: PC Mac OS
: Normal minor
Target Milestone: (C7)
Assignee: Greg Munn
URL:
Depends on:
Blocks:
 
Reported: 2013-02-15 17:23 UTC by GouriKumari
Modified: 2016-05-02 11:10 UTC (History)
5 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

Comment 1 PJ 2013-05-13 17:31:42 UTC
Do we need to build after template creation? I think not..
Comment 2 Jonathan Pryor 2014-04-21 10:52:28 UTC
Is this a problem?

Normal Xamarin Studio behavior is to call the UpdateAndroidResources target whenever the Resources directory is changed so that Resources.Designer.cs is updated to correspond to the changes in the Resources directory, allowing Code Completion to accurately show what resources are available.

(Visual Studio does not currently do this, meaning code completion on the Resources type won't work until a Build has been performed.)

Arguably this isn't necessary when the project is first created, as the template Resource.Designer.cs should accurately match the default template, but that said...is it important to avoid calling the UpdateAndroidResources target on initial project creation?
Comment 3 Mikayla Hutchinson [MSFT] 2014-04-22 08:22:48 UTC
There are two minor problems really. The first is that although the target is called "behind the scenes", it's taking over the build pad, which is confusing. The second is that the target is being called for new projects, even though they should be up to date already.
Comment 4 Greg Munn 2015-04-02 16:07:15 UTC
I'm not sure we can get rid of the initial resgen, I tried it and the designer broke because none of the strings were registered properly so I've left that as is.

I have changed the behaviour so that it does not use the build output anymore, if there are any errors from running UpdateAndroidResources they are surfaced in another pad which is hidden / removed in the "normal" or successful state - it only appears when there are errors resulting from running UpdateAndroidResources.
Comment 5 Sunil Kumar 2016-05-02 11:10:43 UTC
I have checked this issue with C7 latest build and observed that now this issue works fine. It is not creating Build Output automatically on creating an android project from any template.

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

Environment info: 
=== Xamarin Studio Business ===

Version 6.0 (build 5106)
Installation UUID: 561c7a69-0a91-4bae-ad7c-f0c79d594337
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/54fa9c6) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000150

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: 9.8.0.299 (Xamarin Business)
Hash: 7ed8401
Branch: cycle7
Build date: 2016-04-27 14:54:14-0400

=== Xamarin.Android ===

Version: 6.1.0.49 (Xamarin Business)
Android SDK: /Users/tajinder/Desktop/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)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

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

=== Xamarin Android Player ===

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

=== Xamarin.Mac ===

Version: 2.8.0.299 (Xamarin Business)

=== Build Information ===

Release ID: 600005106
Git revision: f5dc54326cf880c90d092bea7f7388c05ee698bc
Build date: 2016-04-26 15:30:12-04
Xamarin addins: 7d85147c75b6dbb4b351906636ef76fdf60307c2
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.10.5
Darwin Tajinders-iMac.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Addin Maker 1.3.1
DNX 0.2
NuGet Package Management Extensions 0.10.1
Test Template Parameters 0.4
JSON Copy 1.1
Manifest.addin 0.0.0.0