Skip to content

Commit b3e5e42

Browse files
committed
Strip native symbols and exclude user assemblies in Debug
1 parent f70fde8 commit b3e5e42

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dotnet/targets/Xamarin.Shared.Sdk.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,14 @@
218218
<PublishReadyToRun Condition="'$(PublishReadyToRun)' == ''">true</PublishReadyToRun>
219219
<PublishReadyToRunComposite Condition="'$(PublishReadyToRun)' == 'true'">true</PublishReadyToRunComposite>
220220
<PublishReadyToRunContainerFormat Condition="'$(PublishReadyToRun)' == 'true'">macho</PublishReadyToRunContainerFormat>
221-
<!-- Strip native symbols from the R2R composite dylib in Release builds -->
222-
<StripSymbols Condition="'$(PublishReadyToRun)' == 'true' And '$(Configuration)' == 'Release'">true</StripSymbols>
221+
<StripSymbols Condition="'$(PublishReadyToRun)' == 'true'">true</StripSymbols>
223222
</PropertyGroup>
224223

224+
<!-- Exclude user assemblies from R2R composite so they run interpreted for debugging -->
225+
<ItemGroup Condition="'$(UseMonoRuntime)' == 'false' And '$(_PlatformName)' != 'macOS' And '$(PublishReadyToRun)' == 'true' And '$(Configuration)' != 'Release'">
226+
<PublishReadyToRunExclude Include="$(TargetFileName)" />
227+
</ItemGroup>
228+
225229
<ItemGroup Condition="'$(UseMonoRuntime)' == 'false' And '$(_PlatformName)' != 'macOS' And '$(PublishReadyToRun)' != 'true'">
226230
<_BundlerEnvironmentVariables Include="DOTNET_ReadyToRun" Value="0" />
227231
</ItemGroup>

0 commit comments

Comments
 (0)