From ef6f0be940c9502ef3711dfa8570c860c091b308 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 16 Apr 2026 17:07:26 +0000
Subject: [PATCH 1/3] Document AndroidInstrumentation and EnableMSTestRunner in
build-properties.md
Agent-Logs-Url: https://github.com/dotnet/android/sessions/b0ccb4d8-0f7e-438a-beef-961ada29fc27
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
---
.../building-apps/build-properties.md | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/Documentation/docs-mobile/building-apps/build-properties.md b/Documentation/docs-mobile/building-apps/build-properties.md
index 487883d1f86..af7c50ddc54 100644
--- a/Documentation/docs-mobile/building-apps/build-properties.md
+++ b/Documentation/docs-mobile/building-apps/build-properties.md
@@ -766,6 +766,18 @@ installation of the Java SDK when running the `` ta
Support for this property was added in .NET 9.
+## AndroidInstrumentation
+
+A string property that specifies the Android
+[instrumentation](https://developer.android.com/reference/android/app/Instrumentation)
+class name to use when launching the application via `dotnet run`.
+
+When [`$(EnableMSTestRunner)`](#enablemstestrunner) is `true` and this property
+is not set, the instrumentation name is automatically resolved from the
+project's `AndroidManifest.xml`.
+
+Introduced in .NET 11.
+
## AndroidJavadocVerbosity
Specifies how "verbose"
@@ -1669,6 +1681,18 @@ This property is `False` by default.
This property is ignored unless the
[`$(AotAssemblies)`](#aotassemblies) MSBuild property is `True`.
+## EnableMSTestRunner
+
+A boolean property that enables the
+[MSTest runner](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-running-tests)
+for Android test projects. When set to `true`, `dotnet run` will launch the
+application via `am instrument` instead of `am start`, allowing test results
+to be reported through Android's instrumentation protocol.
+
+This property is `False` by default.
+
+Introduced in .NET 11.
+
## EnableProguard
A boolean property that determines
From 6607741b9e911375678f9566c7ca369057444fa6 Mon Sep 17 00:00:00 2001
From: Jonathan Peppers
Date: Thu, 16 Apr 2026 12:25:54 -0500
Subject: [PATCH 2/3] Update
Documentation/docs-mobile/building-apps/build-properties.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---
Documentation/docs-mobile/building-apps/build-properties.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/docs-mobile/building-apps/build-properties.md b/Documentation/docs-mobile/building-apps/build-properties.md
index af7c50ddc54..76c736b2af2 100644
--- a/Documentation/docs-mobile/building-apps/build-properties.md
+++ b/Documentation/docs-mobile/building-apps/build-properties.md
@@ -770,11 +770,11 @@ Support for this property was added in .NET 9.
A string property that specifies the Android
[instrumentation](https://developer.android.com/reference/android/app/Instrumentation)
-class name to use when launching the application via `dotnet run`.
+runner class name to use when launching the application via `dotnet run`.
When [`$(EnableMSTestRunner)`](#enablemstestrunner) is `true` and this property
-is not set, the instrumentation name is automatically resolved from the
-project's `AndroidManifest.xml`.
+is not set, the instrumentation runner class name is automatically resolved from
+the project's `AndroidManifest.xml`.
Introduced in .NET 11.
From b1816ef788e1c3e1e29a7ce40e04b95560acae76 Mon Sep 17 00:00:00 2001
From: Jonathan Peppers
Date: Thu, 16 Apr 2026 12:26:41 -0500
Subject: [PATCH 3/3] Update documentation for instrumentation runner class
name
Clarify the source of the instrumentation runner class name in the documentation.
---
Documentation/docs-mobile/building-apps/build-properties.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/docs-mobile/building-apps/build-properties.md b/Documentation/docs-mobile/building-apps/build-properties.md
index 76c736b2af2..52f745021a1 100644
--- a/Documentation/docs-mobile/building-apps/build-properties.md
+++ b/Documentation/docs-mobile/building-apps/build-properties.md
@@ -774,7 +774,7 @@ runner class name to use when launching the application via `dotnet run`.
When [`$(EnableMSTestRunner)`](#enablemstestrunner) is `true` and this property
is not set, the instrumentation runner class name is automatically resolved from
-the project's `AndroidManifest.xml`.
+the generated `AndroidManifest.xml` in the intermediate output.
Introduced in .NET 11.