diff --git a/eng/testing/AndroidRunnerTemplate.sh b/eng/testing/AndroidRunnerTemplate.sh
index dfb90ecaa156bc..1a683aa348986c 100644
--- a/eng/testing/AndroidRunnerTemplate.sh
+++ b/eng/testing/AndroidRunnerTemplate.sh
@@ -4,7 +4,7 @@ EXECUTION_DIR=$(dirname $0)
TEST_NAME=$1
TARGET_ARCH=$2
-APK=$EXECUTION_DIR/Bundle/bin/$TEST_NAME.apk
+APK=$EXECUTION_DIR/bin/$TEST_NAME.apk
# it doesn't support parallel execution yet, so, here is a hand-made semaphore:
LOCKDIR=/tmp/androidtests.lock
@@ -20,4 +20,4 @@ done
dotnet xharness android test -i="net.dot.MonoRunner" \
--package-name="net.dot.$TEST_NAME" \
- --app=$APK -o=$EXECUTION_DIR/Bundle/TestResults -v
+ --app=$APK -o=$EXECUTION_DIR/TestResults -v
diff --git a/eng/testing/AppleRunnerTemplate.sh b/eng/testing/AppleRunnerTemplate.sh
index 11b5675fab77fb..809580e5d73eb3 100644
--- a/eng/testing/AppleRunnerTemplate.sh
+++ b/eng/testing/AppleRunnerTemplate.sh
@@ -25,7 +25,7 @@ fi
# "Release" in SCHEME_SDK is what xcode produces (see "bool Optimized" property in AppleAppBuilderTask)
-APP_BUNDLE=$EXECUTION_DIR/Bundle/$TEST_NAME/$SCHEME_SDK/$TEST_NAME.app
+APP_BUNDLE=$EXECUTION_DIR/$TEST_NAME/$SCHEME_SDK/$TEST_NAME.app
# it doesn't support parallel execution yet, so, here is a hand-made semaphore:
LOCKDIR=/tmp/runonsim.lock
@@ -39,7 +39,7 @@ while true; do
fi
done
-XHARNESS_OUT="$EXECUTION_DIR/Bundle/xharness-output"
+XHARNESS_OUT="$EXECUTION_DIR/xharness-output"
dotnet xharness ios test --app="$APP_BUNDLE" \
--targets=$TARGET \
diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets
new file mode 100644
index 00000000000000..aa0f1450faef72
--- /dev/null
+++ b/eng/testing/tests.mobile.targets
@@ -0,0 +1,114 @@
+
+
+
+ $([MSBuild]::NormalizeDirectory('$(OutDir)', 'AppBundle'))
+ $([MSBuild]::NormalizePath('$(BundleDir)', '$(RunScriptOutputName)'))
+
+
+
+
+
+
+ arm64-v8a
+ armeabi
+ x86_64
+ $(TargetArchitecture)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/eng/testing/tests.props b/eng/testing/tests.props
index f736c75d4279fe..09b51e3163a7d4 100644
--- a/eng/testing/tests.props
+++ b/eng/testing/tests.props
@@ -20,12 +20,17 @@
<_withoutCategories Condition="!$(_withCategories.Contains('failing'))">$(_withoutCategories);failing
-
+
$(NetCoreAppCurrent)-$(MonoConfiguration)
$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleAppBuilder', '$(MobileHelpersDirSuffix)'))
$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleTestRunner', '$(MobileHelpersDirSuffix)'))
$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidAppBuilder', '$(MobileHelpersDirSuffix)'))
$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidTestRunner', '$(MobileHelpersDirSuffix)'))
+
+ $(PackageRID)
+ true
+ false
+
-
-
-
- $(OutDir)\Bundle
- arm64-v8a
- armeabi
- x86_64
- $(TargetArchitecture)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(OutDir)\Bundle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+