Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit dfabe12

Browse files
committed
Port changes from master to kill msbuild.exe, dotnet.exe, and vbcscompiler.exe if running when trying to delete existing repo directory.
1 parent 26aa566 commit dfabe12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scriptType": "inlineScript",
1616
"scriptName": "",
1717
"arguments": "-path $(build.SourcesDirectory)\\corefx",
18-
"inlineScript": "param($path)\n\nif (Test-Path $path){\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n\nif (Test-Path $path){\n # in case corefx is still alive\n .\\diag_tools\\handle.exe -accepteula $path\n }",
18+
"inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild -ErrorAction Ignore -Verbose\n Stop-Process -processname dotnet -ErrorAction Ignore -Verbose\n Stop-Process -processname vbcscompiler -ErrorAction Ignore -Verbose\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n",
1919
"workingFolder": "",
2020
"failOnStandardError": "true"
2121
}

buildpipeline/DotNet-CoreFx-Trusted-Windows.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scriptType": "inlineScript",
1616
"scriptName": "",
1717
"arguments": "-path $(build.SourcesDirectory)\\corefx",
18-
"inlineScript": "param($path)\n\nif (Test-Path $path){\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n\nif (Test-Path $path){\n # in case corefx is still alive\n .\\diag_tools\\handle.exe -accepteula $path\n }",
18+
"inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild -ErrorAction Ignore -Verbose\n Stop-Process -processname dotnet -ErrorAction Ignore -Verbose\n Stop-Process -processname vbcscompiler -ErrorAction Ignore -Verbose\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n",
1919
"workingFolder": "",
2020
"failOnStandardError": "true"
2121
}

0 commit comments

Comments
 (0)