diff --git a/src/mono/netcore/sample/Android/AndroidSampleApp.csproj b/src/mono/netcore/sample/Android/AndroidSampleApp.csproj
index ca078c297be65..d585f49418143 100644
--- a/src/mono/netcore/sample/Android/AndroidSampleApp.csproj
+++ b/src/mono/netcore/sample/Android/AndroidSampleApp.csproj
@@ -3,14 +3,11 @@
Exe
false
$(NetCoreAppCurrent)
- x64
false
android-$(TargetArchitecture)
- true
- <_TrimmerDefaultAction Condition="'$(Configuration)' == 'Release'">link
- True
+ true
+ Link
$(ArtifactsBinDir)microsoft.netcore.app.runtime.$(RuntimeIdentifier)\$(Configuration)\runtimes\android-$(TargetArchitecture)\
- $(NoWarn),CA1050
diff --git a/src/mono/netcore/sample/iOS/Program.csproj b/src/mono/netcore/sample/iOS/Program.csproj
index 832b98b5502f5..519a6e706c506 100644
--- a/src/mono/netcore/sample/iOS/Program.csproj
+++ b/src/mono/netcore/sample/iOS/Program.csproj
@@ -9,10 +9,7 @@
false
ios-$(TargetArchitecture)
true
- <_TrimmerDefaultAction>link
- True
- true
- false
+ Link
@@ -36,6 +33,7 @@
$(MSBuildThisFileDirectory)$(PublishDir)\app
iPhone 11
+ True