diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs index b28d0979a86..8fdd683924d 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs @@ -54,6 +54,22 @@ public void BuildBasicApplicationReleaseFSharp () } } + [Test] + public void CheckKeystoreIsCreated () + { + var proj = new XamarinAndroidApplicationProject () { + IsRelease = true, + }; + using (var b = CreateApkBuilder ("temp/CheckKeystoreIsCreated", false, false)) { + var file = Path.Combine (Root, b.ProjectDirectory, proj.IntermediateOutputPath, "debug.keystore"); + var p = new string [] { + $"_ApkDebugKeyStore={file}", + }; + Assert.IsTrue (b.Build (proj, parameters: p), "Build should have succeeded."); + FileAssert.Exists (file, $"{file} should have been created."); + } + } + [Test] public void FSharpAppHasAndroidDefine () { diff --git a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets index 0e2068c685c..7a971a52255 100755 --- a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets +++ b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets @@ -727,7 +727,9 @@ because xbuild doesn't support framework reference assemblies. - + @@ -2455,9 +2457,23 @@ because xbuild doesn't support framework reference assemblies. - - + + + + + @@ -2484,16 +2500,6 @@ because xbuild doesn't support framework reference assemblies. - -