From 43a72d130284c9a81b66e084dec3d0594e590d88 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Thu, 5 Jul 2018 22:16:30 +0100 Subject: [PATCH 1/2] Exclude sqllite folder when cleaning and use -x instead of -X option --- build.psm1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.psm1 b/build.psm1 index 51541fa4d10..0be884c02b1 100644 --- a/build.psm1 +++ b/build.psm1 @@ -458,10 +458,11 @@ function Start-PSBuild { } if ($Clean) { - Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX'" + Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdx --exclude .vs/PowerShell/v15/Server/sqlite3'" Push-Location $PSScriptRoot try { - git clean -fdX + # Excluded sqlite3 folder is due to this Roslyn issue: https://github.com/dotnet/roslyn/issues/23060 + git clean -fdx --exclude .vs/PowerShell/v15/Server/sqlite3 # Extra cleaning is required to delete the CMake temporary files. # These are not cleaned when using "X" and cause CMake to retain state, leading to # mis-configured environment issues when switching between x86 and x64 compilation From 7aa0bdcb45ae8caf128b6f078eeac218877b4208 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Fri, 6 Jul 2018 07:27:32 +0100 Subject: [PATCH 2/2] Remove 2nd gir clean block which is redundand now --- build.psm1 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build.psm1 b/build.psm1 index 0be884c02b1..b8e59d4ecc7 100644 --- a/build.psm1 +++ b/build.psm1 @@ -463,11 +463,6 @@ function Start-PSBuild { try { # Excluded sqlite3 folder is due to this Roslyn issue: https://github.com/dotnet/roslyn/issues/23060 git clean -fdx --exclude .vs/PowerShell/v15/Server/sqlite3 - # Extra cleaning is required to delete the CMake temporary files. - # These are not cleaned when using "X" and cause CMake to retain state, leading to - # mis-configured environment issues when switching between x86 and x64 compilation - # environments. - git clean -fdx .\src\powershell-native } finally { Pop-Location }