Build isolated test assets for single TFM instead of 7 by nohwnd · Pull Request #15517 · microsoft/vstest (original) (raw)
GetIsolatedTestAsset now takes a targetFramework parameter and rewrites the csproj to build only that TFM. Previously, test assets built for all 7 target frameworks (net462;net472;net48;net8.0;net9.0;net10.0;net11.0) even though the test assertions only need output from one.
Results on affected tests:
- MSBuildLoggerCanBeEnabledByBuildPropertyAndDoesNotEatSpecialChars: 76s -> 15s
- RunDotnetTestWithCsprojPassInlineSettings: 62s -> 15s
- MSBuildLoggerCanBeDisabledByEnvironmentVariableProperty: 83s -> 66s
- MSBuildLoggerCanBeDisabledByBuildProperty: 50s -> ~15s (estimated)
- RunDotnetTestWithCsproj: 45s -> ~15s (estimated)
- RunSettingsAreLoadedFromProject: 31s -> ~15s (estimated)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
AI review requested due to automatic review settings
This was referenced
Mar 25, 2026
This was referenced
May 26, 2026
This was referenced
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})