Skip to content

Commit 6b5cc80

Browse files
[Java.Interop] use $(DebugType) portable
Context: dotnet/android#6799 dotnet/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.
1 parent 1987829 commit 6b5cc80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Java.Interop/Java.Interop-MonoAndroid.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<Import Condition="Exists ('$(XAConfigPath)')" Project="$(XAConfigPath)" />
2727
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2828
<DebugSymbols>true</DebugSymbols>
29-
<DebugType>full</DebugType>
29+
<DebugType>portable</DebugType>
3030
<Optimize>false</Optimize>
3131
<OutputPath>..\..\bin\Debug</OutputPath>
3232
<DefineConstants>DEBUG;INTEROP;FEATURE_JNIENVIRONMENT_JI_PINVOKES;FEATURE_JNIOBJECTREFERENCE_INTPTRS;INTERNAL_NULLABLE_ATTRIBUTES;$(JavaInteropDefineConstants)</DefineConstants>
@@ -39,7 +39,7 @@
3939
<JNIEnvGenPath>..\..\bin\BuildDebug</JNIEnvGenPath>
4040
</PropertyGroup>
4141
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
42-
<DebugType>full</DebugType>
42+
<DebugType>portable</DebugType>
4343
<Optimize>true</Optimize>
4444
<OutputPath>..\..\bin\Release</OutputPath>
4545
<ErrorReport>prompt</ErrorReport>

0 commit comments

Comments
 (0)