未验证 提交 14a27ede 编写于 作者: R Rikki Gibson 提交者: GitHub

Fix vscode-run-tests for dotnet path with spaces (#46317)

上级 093ea477
......@@ -30,7 +30,7 @@ if ($projectFileInfo) {
# Remove old run logs with the same prefix
Remove-Item (Join-Path $resultsPath "$logFilePrefix*.html") -ErrorAction SilentlyContinue
$invocation = "$dotnetPath test $projectDir" + $filterArg + $frameworkArg + " --logger `"html;LogFilePrefix=$logfilePrefix`" --results-directory $resultsPath --no-build"
$invocation = "& `"$dotnetPath`" test $projectDir" + $filterArg + $frameworkArg + " --logger `"html;LogFilePrefix=$logfilePrefix`" --results-directory $resultsPath --no-build"
Write-Output "> $invocation"
Invoke-Expression $invocation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册