Bug 12432 - Slow builds because $(MonoAndroidResDirIntermediate)\values\styles.xml is always updated
Summary: Slow builds because $(MonoAndroidResDirIntermediate)\values\styles.xml is alw...
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.8.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-05-28 14:19 UTC by Jonathan Pryor
Modified: 2013-05-28 14:29 UTC (History)
2 users (show)

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:

Description Jonathan Pryor 2013-05-28 14:19:10 UTC
Build and deploy can be slow because the $(MonoAndroidResDirIntermediate)\values\styles.xml (e.g. obj\Debug\res\values\styles.xml) is always updated, prompting a "rebuild cascade" as everything that depends on Android resources must be rebuilt.
Comment 1 Stephen Shaw 2013-05-28 14:22:15 UTC
Removing all calls to this: "_AddTrialSplashScreenResources" seems to fix this problem
Comment 2 Jonathan Pryor 2013-05-28 14:23:57 UTC
Can also be worked around by applying the following patch to Xamarin.Android.Common.targets:

diff --git a/tools/msbuild/Xamarin.Android.Common.targets b/tools/msbuild/Xamarin.Android.Common.targets
index 261d17b..6ea7bd6 100644
--- a/tools/msbuild/Xamarin.Android.Common.targets
+++ b/tools/msbuild/Xamarin.Android.Common.targets
@@ -639,10 +639,6 @@ because xbuild doesn't support framework reference assemblies.
        ResourceDirectory="$(MonoAndroidResDirIntermediate)" />
-  <Touch
-    Files="$(MonoAndroidResDirIntermediate)\values\styles.xml"
-    Condition="Exists ('$(MonoAndroidResDirIntermediate)\values\styles.xml')"
-  />
 <Target Name="_UpdateAndroidResgen"
Comment 3 Jonathan Pryor 2013-05-28 14:29:40 UTC
Fixed in master/ee5d707b and bs1/74415f44.