Skip to content

Commit b33ffb5

Browse files
authored
Merge pull request microsoft#3233 from microsoft/sachinjoseph/no-powershell-profile
[rush-lib] Don't load the PowerShell Profile for the AsyncRecycler task
2 parents fba606f + f57d193 commit b33ffb5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

apps/rush-lib/src/utilities/AsyncRecycler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class AsyncRecycler {
150150
args = [
151151
'/c',
152152
'"' +
153-
'PowerShell.exe -Version 3.0 -NoLogo -NonInteractive -WindowStyle Hidden -Command' +
153+
'PowerShell.exe -Version 3.0 -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command' +
154154
` Get-ChildItem -Force '${escapedRecyclerFolder}'` +
155155
// The "^|" here prevents cmd.exe from interpreting the "|" symbol
156156
` ^| ForEach ($_) { Remove-Item -ErrorAction Ignore -Force -Recurse "\\\\?\\$($_.FullName)" }` +
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Do not load the PowerShell User Profile for running the AsyncRecycler task",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush"
10+
}

0 commit comments

Comments
 (0)