未验证 提交 64769f8b 编写于 作者: R Rikki Gibson 提交者: GitHub

Exec PrepareTests.dll instead of 'dotnet run' on project (#50006)

上级 e7e481cc
......@@ -11,7 +11,7 @@ try {
$dotnet = Ensure-DotnetSdk
# permissions issues make this a pain to do in PrepareTests itself.
Remove-Item -Recurse -Force "$RepoRoot\artifacts\testPayload" -ErrorAction SilentlyContinue
Exec-Console $dotnet "run --project src\Tools\PrepareTests\PrepareTests.csproj $RepoRoot $RepoRoot\artifacts\testPayload"
Exec-Console $dotnet "$RepoRoot\artifacts\bin\PrepareTests\$configuration\net5.0\PrepareTests.dll $RepoRoot $RepoRoot\artifacts\testPayload"
exit 0
}
catch {
......
......@@ -28,4 +28,4 @@ InitializeDotNetCli true
# permissions issues make this a pain to do in PrepareTests itself.
rm -rf "$repo_root/artifacts/testPayload"
dotnet run --project src/Tools/PrepareTests/PrepareTests.csproj "$repo_root" "$repo_root/artifacts/testPayload"
dotnet "$repo_root/artifacts/bin/PrepareTests/Debug/net5.0/PrepareTests.dll" "$repo_root" "$repo_root/artifacts/testPayload"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册