Test Platform and Framework Detection
Determine
which test platform
(VSTest or Microsoft.Testing.Platform) and
which test framework
(MSTest, xUnit, NUnit, TUnit) a project uses.
Detection files to always check
(in order):
global.json
→
.csproj
→
Directory.Build.props
→
Directory.Packages.props
Detecting the test framework
Read the
.csproj
file
and
Directory.Build.props
/
Directory.Packages.props
(for centrally managed dependencies) and look for:
Package or SDK reference
Framework
MSTest
(metapackage, recommended) or
platform-detection
安装
npx skills add https://github.com/dotnet/skills --skill platform-detection