We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcffbcb commit 0f43724Copy full SHA for 0f43724
build.ps1
@@ -30,14 +30,15 @@ Function CreateIfNotExists([string] $folderPath)
30
}
31
32
33
-$projectRoot = Resolve-path .
+$projectRoot = Resolve-path (Split-Path $MyInvocation.InvocationName)
34
$solutionPath = Join-Path $projectRoot 'PSScriptAnalyzer.sln'
35
$outPath = Join-Path $projectRoot 'out'
36
$destinationPath = Join-Path $outPath PSScriptAnalyzer
37
38
if (-not (Test-Path $solutionPath))
39
{
40
- throw "not the right directory"
+ $errMsg = "{0} not the right directory" -f $solutionPath
41
+ throw $errMsg
42
43
44
$buildCmd = Join-Path $projectRoot "build.cmd"
0 commit comments