Update 'Start-PSBuild -Clean' logic of 'git clean' to ignore locked files from VS2019 (#10071)

This commit is contained in:
Christoph Bergmeister [MVP] authored and Travis Plunk committed 2019-07-08 17:30:17 -07:00
1 parent 201d7aa275
commit 3141405159
1 file changed
+2 -2
+2 -2
View File
@@ -265,12 +265,12 @@ function Start-PSBuild {
}
if ($Clean) {
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3'"
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX --exclude .vs/PowerShell/v16/Server/sqlite3'"
Push-Location $PSScriptRoot
try {
# Excluded sqlite3 folder is due to this Roslyn issue: https://github.com/dotnet/roslyn/issues/23060
# Excluded src/Modules/nuget.config as this is required for release build.
git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3 --exclude src/Modules/nuget.config
git clean -fdX --exclude .vs/PowerShell/v16/Server/sqlite3 --exclude src/Modules/nuget.config
} finally {
Pop-Location
}