File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4
4
[switch ]$install
5
5
)
6
6
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
+ }
8
12
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" ,
11
15
" $solutionDir \Engine\PSScriptAnalyzer.psd1" ,
12
16
" $solutionDir \Engine\PSScriptAnalyzer.psm1" ,
13
17
" $solutionDir \Engine\ScriptAnalyzer.format.ps1xml" ,
You can’t perform that action at this time.
0 commit comments