diff --git a/src/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csproj b/src/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csproj
index 335fc1e7f1b7..a28c116e1f17 100644
--- a/src/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csproj
+++ b/src/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csproj
@@ -5,6 +5,7 @@
enable
enable
false
+ $(TargetRuntimeIdentifier)
false
$(TargetRuntimeIdentifier)
true