diff --git a/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Common/ImportAfter/Xamarin.Android.Windows.targets b/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Common/ImportAfter/Xamarin.Android.Windows.targets index 7b16e67727c..623dda9c056 100644 --- a/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Common/ImportAfter/Xamarin.Android.Windows.targets +++ b/src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Common/ImportAfter/Xamarin.Android.Windows.targets @@ -15,7 +15,7 @@ Copyright (C) 2014 Xamarin. All rights reserved. - + @" +using System; +namespace Lib +{ + public class Class1 + { + public Class1 () + { + } + } +}" + }; + var lib = new XamarinAndroidLibraryProject () { + ProjectName = "Lib", + ProjectGuid = Guid.NewGuid ().ToString (), + Sources = { + class1Source, + }, + }; + using (var b = CreateDllBuilder (Path.Combine (testPath, "Lib"))) { + Assert.IsTrue (b.Build (lib), "Build should have succeeded."); + Assert.IsTrue (b.LastBuildOutput.ContainsText ("LogicalName=__AndroidLibraryProjects__.zip") || + b.LastBuildOutput.ContainsText ("Lib.obj.Debug.__AndroidLibraryProjects__.zip,__AndroidLibraryProjects__.zip"), + "The LogicalName for __AndroidLibraryProjects__.zip should be set."); + class1Source.Timestamp = DateTime.UtcNow.Add (TimeSpan.FromMinutes (1)); + Assert.IsTrue (b.Build (lib), "Build should have succeeded."); + Assert.IsTrue (b.LastBuildOutput.ContainsText ("LogicalName=__AndroidLibraryProjects__.zip") || + b.LastBuildOutput.ContainsText ("Lib.obj.Debug.__AndroidLibraryProjects__.zip,__AndroidLibraryProjects__.zip"), + "The LogicalName for __AndroidLibraryProjects__.zip should be set."); + } + } + [Test] public void AllProjectsHaveSameOutputDirectory() { diff --git a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets index c9b90c4502d..ea44cc8b991 100755 --- a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets +++ b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets @@ -1107,11 +1107,6 @@ because xbuild doesn't support framework reference assemblies. -