diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets
index 0aa3739153dc..f720c430d11d 100644
--- a/dotnet/targets/Xamarin.Shared.Sdk.targets
+++ b/dotnet/targets/Xamarin.Shared.Sdk.targets
@@ -657,7 +657,7 @@
-
+
diff --git a/msbuild/Xamarin.iOS.Tasks.Core/Tasks/ILStripBase.cs b/msbuild/Xamarin.iOS.Tasks.Core/Tasks/ILStripBase.cs
index 622df7cc9859..cc3c4e68037d 100644
--- a/msbuild/Xamarin.iOS.Tasks.Core/Tasks/ILStripBase.cs
+++ b/msbuild/Xamarin.iOS.Tasks.Core/Tasks/ILStripBase.cs
@@ -23,7 +23,7 @@ public override bool Execute ()
{
foreach (var item in Assemblies)
{
- stripedItems.Add (new TaskItem (item.GetMetadata("OutputPath")));
+ stripedItems.Add (new TaskItem (item.GetMetadata("OutputPath"), item.CloneCustomMetadata ()));
}
}
diff --git a/tests/dotnet/UnitTests/PostBuildTest.cs b/tests/dotnet/UnitTests/PostBuildTest.cs
index 5d0aa38679b1..a7184f545c8f 100644
--- a/tests/dotnet/UnitTests/PostBuildTest.cs
+++ b/tests/dotnet/UnitTests/PostBuildTest.cs
@@ -83,6 +83,8 @@ public void AssemblyStripping (ApplePlatform platform, string runtimeIdentifiers
DotNet.AssertBuild (project_path, properties);
AssertBundleAssembliesStripStatus (appPath, shouldStrip);
+ Assert.That (Path.Combine (appPath, "MySimpleApp.dll"), Does.Exist, "Application Assembly");
+ Assert.That (Path.Combine (appPath, "Xamarin.iOS.dll"), Does.Exist, "Platform Assembly");
}
[Test]