Skip to content

Commit 0b7151b

Browse files
authored
Bump to xamarin/java.interop/master@cedf4d0 (#4347)
Changes: dotnet/java-interop@bd7c60a...cedf4d0 * dotnet/java-interop@cedf4d0: [build] Convert more projects to Short-Form projects (#547) Update `src/Mono.Android` to not check target framework of referenced console apps. These project references only exist to ensure a particular build order, so we can skip target framework version compatibility checks.
1 parent fed4537 commit 0b7151b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

external/Java.Interop

src/Mono.Android/Mono.Android.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@
325325
<ProjectReference Include="..\..\build-tools\api-merge\api-merge.csproj" ReferenceOutputAssembly="false" />
326326
<ProjectReference Include="..\..\build-tools\api-xml-adjuster\api-xml-adjuster.csproj" ReferenceOutputAssembly="false" />
327327
<ProjectReference Include="..\..\build-tools\jnienv-gen\jnienv-gen.csproj" ReferenceOutputAssembly="false" />
328-
<ProjectReference Include="..\..\external\Java.Interop\tools\generator\generator.csproj" ReferenceOutputAssembly="false" />
329-
<ProjectReference Include="..\..\external\Java.Interop\tools\jcw-gen\jcw-gen.csproj" ReferenceOutputAssembly="false" />
328+
<ProjectReference Include="..\..\external\Java.Interop\tools\generator\generator.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" />
329+
<ProjectReference Include="..\..\external\Java.Interop\tools\jcw-gen\jcw-gen.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" />
330330
<ProjectReference Include="..\..\src\java-runtime\java-runtime.csproj" ReferenceOutputAssembly="false" />
331331
</ItemGroup>
332332

src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,14 @@
317317
Condition=" '$(HostOS)' != 'Linux' ">
318318
<ItemGroup>
319319
<_InputAssembliesThatExist Include="@(InputAssemblies)" Condition="Exists('%(Identity)')" />
320+
<_NetstandardPath Include="@(ReferencePath->'%(RootDir)%(Directory)')" Condition="'%(FileName)%(Extension)' == 'netstandard.dll'" />
320321
</ItemGroup>
321322
<PropertyGroup>
323+
<_NetstandardDir>@(_NetstandardPath)</_NetstandardDir>
322324
<_ILRepackArgs>/out:&quot;$(MSBuildThisFileDirectory)$(IntermediateOutputPath)$(AssemblyName).dll&quot; /internalize</_ILRepackArgs>
323325
<_ILRepackArgs>$(_ILRepackArgs) &quot;$(MSBuildThisFileDirectory)$(IntermediateOutputPath)$(AssemblyName).dll&quot;</_ILRepackArgs>
324326
<_ILRepackArgs>$(_ILRepackArgs) @(_InputAssembliesThatExist->'&quot;%(Identity)&quot;', ' ')</_ILRepackArgs>
327+
<_ILRepackArgs>$(_ILRepackArgs) /lib:&quot;$(_NetstandardDir.TrimEnd('\'))&quot;</_ILRepackArgs> <!-- Path to netstandard.dll -->
325328
</PropertyGroup>
326329
<Exec
327330
Command="&quot;$(ILRepack)&quot; $(_ILRepackArgs)"

0 commit comments

Comments
 (0)