Skip to content

Commit 7432100

Browse files
authored
fix: Incorrect version of JavaInterop included (#2995)
1 parent 2fb92fc commit 7432100

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Directory.build.props

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,21 @@
3333

3434
<!-- MonoAndroid doesn't seem to want to allow debugging for maintainers -->
3535
<PropertyGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
36-
<DebugType>Full</DebugType>
36+
<DebugType>portable</DebugType>
3737
</PropertyGroup>
3838

3939
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
4040
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
4141
</PropertyGroup>
4242

43+
<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
44+
<!-- Hack to get around invalid version of Java.Interop -->
45+
<Reference Include="Java.Interop">
46+
<!-- Path to a VS 2019 Java.Interop.dll -->
47+
<HintPath>C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll</HintPath>
48+
</Reference>
49+
</ItemGroup>
50+
4351
<ItemGroup Condition="$(IsTestProject)">
4452
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
4553
<PackageReference Include="xunit" Version="2.4.1" />

0 commit comments

Comments
 (0)