|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | +<Project> |
3 | 3 |
|
| 4 | + <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> |
4 | 5 | <Import Project="..\..\Configuration.props" />
|
5 | 6 |
|
6 | 7 | <PropertyGroup>
|
7 |
| - <TargetFramework>monoandroid10</TargetFramework> |
| 8 | + <TargetFrameworks>monoandroid10;netcoreapp3.1</TargetFrameworks> |
8 | 9 | <RootNamespace>Android</RootNamespace>
|
9 | 10 | <SignAssembly>true</SignAssembly>
|
10 | 11 | <AssemblyOriginatorKeyFile>..\..\product.snk</AssemblyOriginatorKeyFile>
|
|
30 | 31 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
31 | 32 | </PropertyGroup>
|
32 | 33 |
|
| 34 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' "> |
| 35 | + <OutputPath>$(XAInstallPrefix)xbuild-frameworks\Xamarin.Android.App\$(TargetFramework)\</OutputPath> |
| 36 | + <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
| 37 | + </PropertyGroup> |
| 38 | + |
33 | 39 | <ItemGroup Condition=" '$(TargetFramework)' == 'monoandroid10' ">
|
34 | 40 | <Reference Include="mscorlib">
|
35 | 41 | <HintPath>$(OutputPath)..\v1.0\mscorlib.dll</HintPath>
|
|
73 | 79 | </Reference>
|
74 | 80 | </ItemGroup>
|
75 | 81 |
|
| 82 | + <ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' "> |
| 83 | + <ProjectReference Include="..\..\external\Java.Interop\src\Java.Interop\Java.Interop.csproj" /> |
| 84 | + </ItemGroup> |
| 85 | + |
76 | 86 | <ItemGroup>
|
77 | 87 | <Compile Include="..\..\external\Java.Interop\src\Java.Interop.Tools.TypeNameMappings\Java.Interop.Tools.TypeNameMappings\JavaNativeTypeManager.cs">
|
78 | 88 | <Link>JavaNativeTypeManager.cs</Link>
|
|
331 | 341 | <ProjectReference Include="..\..\build-tools\api-merge\api-merge.csproj" ReferenceOutputAssembly="false" />
|
332 | 342 | <ProjectReference Include="..\..\build-tools\api-xml-adjuster\api-xml-adjuster.csproj" ReferenceOutputAssembly="false" />
|
333 | 343 | <ProjectReference Include="..\..\build-tools\jnienv-gen\jnienv-gen.csproj" ReferenceOutputAssembly="false" />
|
334 |
| - <ProjectReference Include="..\..\external\Java.Interop\tools\generator\generator.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" /> |
335 |
| - <ProjectReference Include="..\..\external\Java.Interop\tools\jcw-gen\jcw-gen.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" /> |
| 344 | + <!-- Explicitly pass the target framework of the project so we don't have conflicts with the multiple targets in this file. --> |
| 345 | + <ProjectReference Include="..\..\external\Java.Interop\tools\generator\generator.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" AdditionalProperties="TargetFramework=net472"/> |
| 346 | + <ProjectReference Include="..\..\external\Java.Interop\tools\jcw-gen\jcw-gen.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" AdditionalProperties="TargetFramework=net472" /> |
336 | 347 | <ProjectReference Include="..\..\src\java-runtime\java-runtime.csproj" ReferenceOutputAssembly="false" />
|
337 | 348 | </ItemGroup>
|
338 | 349 |
|
| 350 | + <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> |
| 351 | + <!-- Only build the 'netcoreapp3.1' version of 'Mono.Android.dll' once for the latest stable Android version. --> |
| 352 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' And '$(AndroidFrameworkVersion)' != '$(AndroidLatestStableFrameworkVersion)' "> |
| 353 | + <BuildDependsOn></BuildDependsOn> |
| 354 | + </PropertyGroup> |
| 355 | + |
339 | 356 | </Project>
|
0 commit comments