diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
index f55adc0d693..b62b9fec412 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
@@ -392,7 +392,7 @@ The .NET Foundation licenses this file to you under the MIT license.
+ Condition="'$(WASI_SDK_PATH)' != '' and '$(_targetOS)' == 'wasi' and !Exists('$(WASI_SDK_PATH)/VERSION')" />