diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props
index b628bc55eec..cdea9479e7f 100644
--- a/dotnet/targets/Xamarin.Shared.Sdk.props
+++ b/dotnet/targets/Xamarin.Shared.Sdk.props
@@ -94,10 +94,6 @@
true
true
-
-
- false
-
@@ -142,6 +138,9 @@
+
+ false
+
$(CustomAfterDirectoryBuildTargets);$(MSBuildThisFileDirectory)Xamarin.Shared.Sdk.Trimming.props
diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs
index cc8541998b9..a6e67add7b0 100644
--- a/tests/dotnet/UnitTests/ProjectTest.cs
+++ b/tests/dotnet/UnitTests/ProjectTest.cs
@@ -1744,6 +1744,7 @@ public void BuildMyNativeAotAppWithTrimAnalysisWarning (ApplePlatform platform,
[TestCase (ApplePlatform.MacOSX, "osx-x64", "Release")]
[TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64", "Debug")]
[TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64", "Release")]
+ [TestCase (ApplePlatform.MacOSX, "", "Release")]
[TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64", "Debug")]
[TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64", "Release")]
[TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64;maccatalyst-x64", "Debug")]