Skip to content

Commit f2fed37

Browse files
atsushienogrendello
authored andcommitted
Fix Java.Interop reference in Mono.Posix.csproj (#60)
Mono.Posix build failed because it recursively requires Java.Interop reference (due to missing IJavaPeerable in the references). Adding Java.Interop and System.Runtime fixes the issue (and this is how Mono.Android builds, instead of adding <ProjectReference> ...).
1 parent 742e031 commit f2fed37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Mono.Posix/Mono.Posix.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@
238238
<Name>Mono.Android</Name>
239239
<Private>False</Private>
240240
</ProjectReference>
241+
<Reference Include="Java.Interop">
242+
<HintPath>$(OutputPath)..\v1.0\Java.Interop.dll</HintPath>
243+
<Private>False</Private>
244+
</Reference>
245+
<Reference Include="System.Runtime">
246+
<HintPath>$(OutputPath)..\v1.0\Facades\System.Runtime.dll</HintPath>
247+
<Private>False</Private>
248+
</Reference>
241249
</ItemGroup>
242250
<PropertyGroup>
243251
<XANativeLibsDir>$(OutputPath)\..\..\..\xbuild\Xamarin\Android\lib</XANativeLibsDir>

0 commit comments

Comments
 (0)