From 9c4c5755bdbb3b748e4a0378fc17a7635f3f0bf0 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 4 Jun 2026 10:10:43 -0500 Subject: [PATCH] [tests] Add missing jcw-gen project dependency to Java.Base-Tests Follow-up to 4b9ee55f which fixed the same issue in Hello-Java.Base. The Java.Base-Tests project invokes jcw-gen.dll via the Java.Interop.Sdk targets but did not declare a ProjectReference to tools/jcw-gen/jcw-gen.csproj. Under parallel (-m) builds this can race: Java.Base-Tests's _JavaCreateJcws target runs before jcw-gen.dll has been produced, and dotnet fails with: Could not execute because the specified command or file was not found. * You intended to execute a .NET program, but dotnet-...\bin\Release-net10.0\/jcw-gen.dll does not exist. Observed on https://dev.azure.com/dnceng-public/public/_build/results?buildId=1448024 Add a ReferenceOutputAssembly=false ProjectReference so MSBuild orders jcw-gen ahead of Java.Base-Tests, matching the pattern used by Hello-Java.Base and Java.Interop-Tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/Java.Base-Tests/Java.Base-Tests.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Java.Base-Tests/Java.Base-Tests.csproj b/tests/Java.Base-Tests/Java.Base-Tests.csproj index 4fd777cf0..4bc8b63be 100644 --- a/tests/Java.Base-Tests/Java.Base-Tests.csproj +++ b/tests/Java.Base-Tests/Java.Base-Tests.csproj @@ -26,6 +26,7 @@ +