Skip to content

Conversation

@jonpryor
Copy link
Contributor

@jonpryor jonpryor commented May 6, 2022

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).

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)`.
@jonpryor jonpryor merged commit 843f3c7 into dotnet:main May 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant