Skip to content

Commit 843f3c7

Browse files
authored
[Java.Base-Tests] Use $(UtilityOutputFullPath)/jcw-gen.dll (#979)
Context: dotnet/android#6984 While attempting to bump Java.Interop, the **nunit Java.Interop tests** job is failing on Windows, because it can't find `jcw-gen.dll`: C:\a\_work\2\s\external\Java.Interop\tests\Java.Base-Tests\Java.Base-Tests.targets(27,5): error MSB3073: The command "C:\a\_work\2\s\bin\Release\dotnet\dotnet "C:\a\_work\2\s\external\Java.Interop\bin\Release-net6.0\/jcw-gen.dll" …"" exited with code 1. The `jcw-gen.dll` invocation needs to use `$(UtilityOutputFullPath)`, not `$(ToolOutputFullPath)`, as the `jcw-gen.dll` output path is altered within xamarin/xamarin-android. `$(UtilityOutputFullPath)` allows customization by xamarin-android, not `$(ToolOutputFullPath)`.
1 parent 4787e01 commit 843f3c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Java.Base-Tests/Java.Base-Tests.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<_RefAsmDirs Include="@(ReferencePathWithRefAssemblies->'%(RootDir)%(Directory).'->Distinct())" />
2020
</ItemGroup>
2121
<PropertyGroup>
22-
<_JcwGen>"$(ToolOutputFullPath)/jcw-gen.dll"</_JcwGen>
22+
<_JcwGen>"$(UtilityOutputFullPath)/jcw-gen.dll"</_JcwGen>
2323
<_Target>--codegen-target JavaInterop1</_Target>
2424
<_Output>-o "$(IntermediateOutputPath)/java"</_Output>
2525
<_Libpath>@(_RefAsmDirs->'-L "%(Identity)"', ' ')</_Libpath>

0 commit comments

Comments
 (0)