在哪里为 Visual Studio Code 的 vscode-dotnet-test-explorer 扩展设置 dotnet-test-explorer.testProjectPath?

Ant*_*ony 9 visual-studio-code

我找到了各种文档说明我需要这样做dotnet-test-explorer.testProjectPath。我在任何地方都找不到该字符串,它在哪里设置?

Ant*_*ony 11

我通过反复试验找到了答案。

扩展名的设置vscode-dotnet-test-explorer位于文件中.vscode/settings.json

该扩展现在找到我的测试。我的文件settings.json如下所示:

{
    "dotnet-test-explorer.testProjectPath": "APIvNext/UnitTests"
}
Run Code Online (Sandbox Code Playgroud)