From 6b5cc8086bf400683610c41151cc2b51b1e74ae7 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 28 Feb 2022 16:20:33 -0600 Subject: [PATCH] [Java.Interop] use $(DebugType) portable Context: https://github.com/xamarin/xamarin-android/pull/6799 xamarin/xamarin-android#6799 is missing `Java.Interop.pdb` when building in `Release` mode. I suspect this is due to `$(DebugType)` set to `full`. This creates `Java.Interop.dll.mdb`! The modern approach is to use `portable` for both `Debug` and `Release` builds, so we should just use that. --- src/Java.Interop/Java.Interop-MonoAndroid.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Java.Interop/Java.Interop-MonoAndroid.csproj b/src/Java.Interop/Java.Interop-MonoAndroid.csproj index ef9875bb1..a920f8ae4 100644 --- a/src/Java.Interop/Java.Interop-MonoAndroid.csproj +++ b/src/Java.Interop/Java.Interop-MonoAndroid.csproj @@ -26,7 +26,7 @@ true - full + portable false ..\..\bin\Debug DEBUG;INTEROP;FEATURE_JNIENVIRONMENT_JI_PINVOKES;FEATURE_JNIOBJECTREFERENCE_INTPTRS;INTERNAL_NULLABLE_ATTRIBUTES;$(JavaInteropDefineConstants) @@ -39,7 +39,7 @@ ..\..\bin\BuildDebug - full + portable true ..\..\bin\Release prompt