Skip to content

Commit e9fa8c4

Browse files
pjcollinsjonpryor
authored andcommitted
Bump to xamarin/java.interop/d16-6@2cab35cc (#4347)
Changes: dotnet/java-interop@a84d19e...2cab35c * dotnet/java-interop@2cab35cc: [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 95fa32e commit e9fa8c4

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
@@ -316,11 +316,14 @@
316316
Condition=" '$(HostOS)' != 'Linux' ">
317317
<ItemGroup>
318318
<_InputAssembliesThatExist Include="@(InputAssemblies)" Condition="Exists('%(Identity)')" />
319+
<_NetstandardPath Include="@(ReferencePath->'%(RootDir)%(Directory)')" Condition="'%(FileName)%(Extension)' == 'netstandard.dll'" />
319320
</ItemGroup>
320321
<PropertyGroup>
322+
<_NetstandardDir>@(_NetstandardPath)</_NetstandardDir>
321323
<_ILRepackArgs>/out:&quot;$(MSBuildThisFileDirectory)$(IntermediateOutputPath)$(AssemblyName).dll&quot; /internalize</_ILRepackArgs>
322324
<_ILRepackArgs>$(_ILRepackArgs) &quot;$(MSBuildThisFileDirectory)$(IntermediateOutputPath)$(AssemblyName).dll&quot;</_ILRepackArgs>
323325
<_ILRepackArgs>$(_ILRepackArgs) @(_InputAssembliesThatExist->'&quot;%(Identity)&quot;', ' ')</_ILRepackArgs>
326+
<_ILRepackArgs>$(_ILRepackArgs) /lib:&quot;$(_NetstandardDir.TrimEnd('\'))&quot;</_ILRepackArgs> <!-- Path to netstandard.dll -->
324327
</PropertyGroup>
325328
<Exec
326329
Command="&quot;$(ILRepack)&quot; $(_ILRepackArgs)"

0 commit comments

Comments
 (0)