Skip to content

Commit 6cde087

Browse files
[Java.Interop] Emit a reference assembly for Java.Interop.dll (#716)
Context: dotnet/android@00c2c1a The `Microsoft.Android.Ref` package for .NET 6 needs to contain reference assemblies for each assembly we ship. `Java.Interop.dll` is one of the assemblies included in the `Microsoft.Android.Ref` package, so we need to set `$(ProduceReferenceAssembly)`=True so that a reference assembly is created automatically. Size difference: Length Name ------ ---- 227328 Java.Interop.dll 94208 ref/Java.Interop.dll
1 parent b858dc5 commit 6cde087

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<SignAssembly>true</SignAssembly>
1616
<AssemblyOriginatorKeyFile>..\..\product.snk</AssemblyOriginatorKeyFile>
1717
<LangVersion>8.0</LangVersion>
18+
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
1819
</PropertyGroup>
1920
<Import Project="..\..\Directory.Build.props" />
2021
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

src/Java.Interop/Java.Interop.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<JNIEnvGenPath>$(BuildToolOutputFullPath)</JNIEnvGenPath>
1515
<LangVersion>8.0</LangVersion>
1616
<Nullable>enable</Nullable>
17+
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
1718
</PropertyGroup>
1819
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1920
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>

0 commit comments

Comments
 (0)