diff --git a/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Resource.Designer.targets b/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Resource.Designer.targets
index 76352cda754..7c6ae426b60 100644
--- a/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Resource.Designer.targets
+++ b/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Resource.Designer.targets
@@ -82,10 +82,14 @@ Copyright (C) 2016 Xamarin. All rights reserved.
Inputs="@(_AndroidResourceDest);@(LibraryResourceDirectories->'%(StampFile)')"
Outputs="$(_GenerateResourceCaseMapFile)"
>
+
+
+ <_LocalAarFiles Include="@(AndroidAarLibrary)" Condition=" '@(LibraryResourceDirectories->Count())' == '0' " />
+
", "");
proj.Touch ("Resources\\layout\\Main.axml");
Assert.IsTrue (b.DesignTimeBuild (proj, target: "UpdateGeneratedFiles"), "DTB should have succeeded.");
- var resourcepathscache = Path.Combine (Root, b.ProjectDirectory, proj.IntermediateOutputPath, "designtime", "libraryprojectimports.cache");
- FileAssert.Exists (resourcepathscache);
- var doc = XDocument.Load (resourcepathscache);
- Assert.AreEqual (54, doc.Root.Element ("Jars").Elements ("Jar").Count (), "libraryprojectimports.cache did not contain expected jar files");
+ var rTxtFile = Path.Combine (Root, b.ProjectDirectory, proj.IntermediateOutputPath, "designtime", "R.txt");
+ FileAssert.Exists (rTxtFile);
+ var doc = File.ReadAllText (rTxtFile);
+ StringAssert.Contains ("foo", doc, "R.tct did not contain expected id of foo");
}
}
diff --git a/src/Xamarin.Android.Build.Tasks/Utilities/FileResourceParser.cs b/src/Xamarin.Android.Build.Tasks/Utilities/FileResourceParser.cs
index 29e5b79a62f..05ba3545481 100644
--- a/src/Xamarin.Android.Build.Tasks/Utilities/FileResourceParser.cs
+++ b/src/Xamarin.Android.Build.Tasks/Utilities/FileResourceParser.cs
@@ -1,5 +1,6 @@
using System;
using System.CodeDom;
+using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -332,8 +333,8 @@ void ProcessStyleable (XmlReader reader, Dictionary> reso
fields.Add (r);
}
}
- if (field.Type != RType.Array)
- return;
+ //if (field.Type != RType.Array)
+ // return;
arrayMapping.Add (field, fields.ToArray ());
field.Ids = new int [attribs.Count];