File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ function Invoke-AppveyorTest {
53
53
54
54
# set up env:PSModulePath to the build location, don't copy it to the "normal place"
55
55
$analyzerVersion = ([xml ](Get-Content " ${CheckoutPath} \Engine\Engine.csproj" )).SelectSingleNode(" .//VersionPrefix" )." #text" .Trim()
56
+ $majorVersion = ([System.Version ]$analyzerVersion ).Major
56
57
57
- if ( $analyzerVersion -lt 5 ) {
58
+ Get-ChildItem - rec - file - name " ${CheckoutPath} /out" | Write-Verbose - Verbose
59
+ if ( $majorVersion -lt 5 ) {
58
60
$versionModuleDir = " ${CheckoutPath} \out\PSScriptAnalyzer\${analyzerVersion} "
59
61
Rename-Item " ${versionModuleDir} " " ${CheckoutPath} \out\PSScriptAnalyzer\PSScriptAnalyzer"
60
62
$moduleDir = " ${CheckoutPath} \out\PSScriptAnalyzer"
You can’t perform that action at this time.
0 commit comments