File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 [switch ]$install
55)
66
7- $solutionDir = " $HOME \Source\Repos\PSScriptAnalyzer"
7+ $solutionDir = Split-Path $MyInvocation.InvocationName
8+ if (-not (Test-Path " $solutionDir /global.json" ))
9+ {
10+ throw " Not in solution root"
11+ }
812
9- $itemsToCopy = @ (" $solutionDir \Engine\bin\debug \netcoreapp1.0\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" ,
10- " $solutionDir \Rules\bin\debug \netcoreapp1.0\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" ,
13+ $itemsToCopy = @ (" $solutionDir \Engine\bin\Debug \netcoreapp1.0\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll" ,
14+ " $solutionDir \Rules\bin\Debug \netcoreapp1.0\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll" ,
1115 " $solutionDir \Engine\PSScriptAnalyzer.psd1" ,
1216 " $solutionDir \Engine\PSScriptAnalyzer.psm1" ,
1317 " $solutionDir \Engine\ScriptAnalyzer.format.ps1xml" ,
You can’t perform that action at this time.
0 commit comments