From 3e982ae2f7e281a1a1f36fe3fbac5711e2db6c52 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 4 Nov 2017 12:08:51 +0100 Subject: [PATCH] Revert "#967 Using $PWD instead of Get-Location and PSScriptRoot. I hope this will make everyone happy." This reverts commit ed0ed8f5ab8b964d28d7d29685a6da05affbe42a. --- BuildTools/update-assemblyinfo.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildTools/update-assemblyinfo.ps1 b/BuildTools/update-assemblyinfo.ps1 index 022b2611a..53ad2c33b 100644 --- a/BuildTools/update-assemblyinfo.ps1 +++ b/BuildTools/update-assemblyinfo.ps1 @@ -60,7 +60,7 @@ $templateFiles = ( @{Input="ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template"; Output="ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec"}, @{Input="ILSpy/Properties/app.config.template"; Output = "ILSpy/app.config"} ); -[string]$mutexId = "ILSpyUpdateAssemblyInfo" + $PWD.GetHashCode(); +[string]$mutexId = "ILSpyUpdateAssemblyInfo" + (Get-Location).GetHashCode(); [bool]$createdNew = $false; $mutex = New-Object System.Threading.Mutex($true, $mutexId, [ref]$createdNew); try {