Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/winui-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Application model | Recommended test configuration | Test host |
| --- | --- | --- |
| Legacy UWP (`uap10.0`) | [`ClassicUwpMtpApp`](../samples/public/ClassicUwpMtpApp) | MTP sidecar controller with native UAP adapter assets |
| Modern UWP (.NET 9, `UseUwp` with UWP tooling) | [`UwpMtpApp`](../samples/public/UwpMtpApp) | MTP sidecar controller with AUMID activation |
| Modern UWP (.NET 10, `UseUwp` with UWP tooling) | [`UwpMtpApp`](../samples/public/UwpMtpApp) | MTP sidecar controller with AUMID activation |
| Packaged full-trust WinUI 3 (`UseWinUI`) | [`WinUIMtpPackagedApp`](../samples/public/WinUIMtpPackagedApp) | MTP sidecar controller with automatic package registration and AUMID activation |
| Unpackaged WinUI 3 (`UseWinUI`, `WindowsPackageType=None`) | [`WinUIMtpUnpackagedApp`](../samples/public/WinUIMtpUnpackagedApp) | MTP direct executable launch |
| WinUI 3 `packagedClassicApp` with `TrustLevel="appContainer"` | [`WinUIMtpAppContainerApp`](../samples/public/WinUIMtpAppContainerApp) | MTP sidecar controller with exact package-SID pipe authorization |
Expand Down Expand Up @@ -37,7 +37,7 @@ For modern UWP, the test-related part of the project is reduced to the SDK decla
```xml
<Project Sdk="MSTest.Sdk">
<PropertyGroup>
<TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
<TargetFramework>net10.0-windows10.0.26100.0</TargetFramework>
<UseUwp>true</UseUwp>
<PublishAot>true</PublishAot>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions samples/public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ tests, see [Testing UWP and WinUI apps with MSTest](../../docs/winui-testing.md)

Run commands from a sample directory and select a concrete architecture:

The MTP `dotnet test --project` syntax used by the WinUI samples and the per-sample `global.json`
runner selection require .NET SDK 10 or later. The WinUI projects target the supported .NET 8
minimum and the modern UWP sample targets .NET 9; those target frameworks do not determine the SDK
version used by `dotnet test`.
The MTP `dotnet test --project` syntax used by the WinUI samples requires .NET SDK 10 or later even
though those projects target the supported .NET 8 minimum. The modern UWP sample targets .NET 10
and also requires .NET SDK 10 or later, but uses Visual Studio desktop MSBuild for UWP build and
execution.

```powershell
# Full-trust and unpackaged WinUI MTP samples
Expand Down
7 changes: 3 additions & 4 deletions samples/public/UwpMtpApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ Microsoft.Testing.Platform. `MSTest.Sdk` supplies the sidecar controller and pac
the UWP launch activation string is restored with
`PackagedAppExtensions.GetTestApplicationArguments`.

The application targets .NET 9 because MSTest 4.5's modern-UWP package assets and native-AOT
selection are validated for `net9.0`. The .NET 10 SDK supplies the release toolchain and MTP runner
selection, while UWP execution uses desktop MSBuild. Targeting `net10.0` currently builds a package
recipe whose executable selection is not supported by the MTP packaged-app launcher.
The application targets .NET 10. The .NET 10 SDK supplies the target framework and resolves
`MSTest.Sdk`; desktop MSBuild from Visual Studio loads the UWP XAML and MSIX toolchain and runs the
`InvokeTestingPlatform` target.

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion samples/public/UwpMtpApp/UwpMtpApp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="MSTest.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
<TargetFramework>net10.0-windows10.0.26100.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<Platforms>x64</Platforms>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
Expand Down
Loading