Skip to content

Document AndroidInstrumentation and EnableMSTestRunner build properties#11129

Merged
jonathanpeppers merged 3 commits intomainfrom
copilot/document-android-instrumentation-and-mstest-runner
Apr 16, 2026
Merged

Document AndroidInstrumentation and EnableMSTestRunner build properties#11129
jonathanpeppers merged 3 commits intomainfrom
copilot/document-android-instrumentation-and-mstest-runner

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

Context: 885dd60 added AndroidInstrumentation and EnableMSTestRunner MSBuild properties but did not document them in build-properties.md.

This PR adds documentation entries for both properties in alphabetical order:

  • AndroidInstrumentation – specifies the Android instrumentation class name used when launching via dotnet run. When EnableMSTestRunner is true and this is unset, it is auto-resolved from AndroidManifest.xml.
  • EnableMSTestRunner – enables the MSTest runner for Android test projects, switching dotnet run from am start to am instrument.

Both are marked as introduced in .NET 11.


  • Useful description of why the change is necessary.
  • Links to issues fixed
  • N/A Unit tests (documentation-only change)

…rties.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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing documentation for two recently introduced MSBuild properties affecting dotnet run behavior for Android test/instrumentation scenarios.

Changes:

  • Document AndroidInstrumentation (including interaction with EnableMSTestRunner) in build-properties.md.
  • Document EnableMSTestRunner and its effect on switching from am start to am instrument.
  • Place both entries in alphabetical order and mark them as introduced in .NET 11.

Comment thread Documentation/docs-mobile/building-apps/build-properties.md Outdated
Comment thread Documentation/docs-mobile/building-apps/build-properties.md Outdated
jonathanpeppers and others added 2 commits April 16, 2026 12:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Clarify the source of the instrumentation runner class name in the documentation.
@jonathanpeppers jonathanpeppers merged commit d974312 into main Apr 16, 2026
1 of 6 checks passed
@jonathanpeppers jonathanpeppers deleted the copilot/document-android-instrumentation-and-mstest-runner branch April 16, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants