Skip to content

Commit 160d02a

Browse files
committed
[build] Fix for MSBuild 16.8.
1 parent 99897b2 commit 160d02a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Java.Interop/Directory.Build.targets

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
Inputs="$(_JNIEnvGenPath)"
1717
Outputs="Java.Interop/JniEnvironment.g.cs;$(IntermediateOutputPath)jni.c">
1818
<MakeDir Directories="$(IntermediateOutputPath)" />
19-
<PropertyGroup>
20-
<_AddCompile Condition=" !Exists('Java.Interop/JniEnvironment.g.cs') ">True</_AddCompile>
21-
</PropertyGroup>
2219
<Exec
2320
Command="$(_RunJNIEnvGen) Java.Interop/JniEnvironment.g.cs $(IntermediateOutputPath)jni.c"
2421
/>
2522
<ItemGroup>
26-
<Compile Include="Java.Interop/JniEnvironment.g.cs" Condition=" '$(_AddCompile)' == 'True' " />
23+
<Compile Include="$([System.IO.Path]::Combine('Java.Interop','JniEnvironment.g.cs'))" KeepDuplicates="false" />
2724
</ItemGroup>
2825
</Target>
2926
<Target Name="BuildInteropJar"

0 commit comments

Comments
 (0)