From ed0ed8f5ab8b964d28d7d29685a6da05affbe42a Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 3 Nov 2017 23:49:20 +0100 Subject: [PATCH] #967 Using $PWD instead of Get-Location and PSScriptRoot. I hope this will make everyone happy. --- 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 53ad2c33b..022b2611a 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" + (Get-Location).GetHashCode(); +[string]$mutexId = "ILSpyUpdateAssemblyInfo" + $PWD.GetHashCode(); [bool]$createdNew = $false; $mutex = New-Object System.Threading.Mutex($true, $mutexId, [ref]$createdNew); try {