From 9b94c55527db331981759a904a1e2f1f6e2fa720 Mon Sep 17 00:00:00 2001 From: nohwnd Date: Fri, 6 Dec 2019 11:14:53 +0100 Subject: [PATCH] Disable reusing nodes when building localization Adds flag to msbuild to prevent it from keeping the build nodes active. Keeping the nodes active makes them lock the assemblies that we built, which in turn prevents the repository from being easily cleaned, (e.g. by `git clean -Xfd`). --- scripts/build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 1d23cc3b3b..f99f765ba4 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -685,8 +685,8 @@ function Update-LocalizedResources } $localizationProject = Join-Path $env:TP_PACKAGE_PROJ_DIR "Localize\Localize.proj" - Write-Verbose "& $dotnetExe msbuild $localizationProject -m -nologo -v:minimal -t:Localize -p:LocalizeResources=true" - & $dotnetExe msbuild $localizationProject -m -nologo -v:minimal -t:Localize -p:LocalizeResources=true + Write-Verbose "& $dotnetExe msbuild $localizationProject -m -nologo -v:minimal -t:Localize -p:LocalizeResources=true -nodeReuse:False" + & $dotnetExe msbuild $localizationProject -m -nologo -v:minimal -t:Localize -p:LocalizeResources=true -nodeReuse:False Set-ScriptFailedOnError