1- parameters :
2- - name : pwsh 
3-   type : boolean 
4-   default : true 
5- 
61steps :
72- task : PowerShell@2 
83  displayName : PowerShell version 
94  inputs :
105    targetType : inline 
6+     pwsh : true 
117    script : $PSVersionTable 
12-     pwsh : ${{ parameters.pwsh }} 
138
149- task : UseDotNet@2 
1510  displayName : Install .NET 7.0.x SDK 
@@ -25,18 +20,25 @@ steps:
2520    version : 6.0.x 
2621    performMultiLevelLookup : true 
2722
23+ - task : PowerShell@2 
24+   displayName : Install PSResources 
25+   inputs :
26+     pwsh : true 
27+     filePath : tools/installPSResources.ps1 
28+ 
2829- task : PowerShell@2 
2930  displayName : Build 
3031  inputs :
31-     filePath : tools/azurePipelinesBuild.ps1 
32-     pwsh : ${{ parameters.pwsh }} 
32+     targetType : inline 
33+     pwsh : true 
34+     script : Invoke-Build Build -Configuration Release 
3335
3436- task : PowerShell@2 
3537  displayName : Test 
3638  inputs :
3739    targetType : inline 
40+     pwsh : true 
3841    script : Invoke-Build Test -Configuration Release 
39-     pwsh : ${{ parameters.pwsh }} 
4042
4143- task : PublishTestResults@2 
4244  displayName : Publish test results 
@@ -49,13 +51,13 @@ steps:
4951  displayName : Assert PowerShellEditorServices release configuration 
5052  inputs :
5153    targetType : inline 
54+     pwsh : true 
5255    script : | 
5356      $assembly = [Reflection.Assembly]::LoadFile("$(Build.SourcesDirectory)/module/PowerShellEditorServices.VSCode/bin/Microsoft.PowerShell.EditorServices.VSCode.dll") 
5457      if ($assembly.GetCustomAttributes([System.Diagnostics.DebuggableAttribute], $true).IsJITOptimizerDisabled) { 
5558        Write-Host "##vso[task.LogIssue type=error;] PowerShell Editor Services bits were not built in release configuration!" 
5659        exit 1 
5760      } 
58-      pwsh : ${{ parameters.pwsh }} 
5961
6062#  NOTE: We zip the artifacts because they're ~20 MB compressed, but ~300 MB raw,
6163#  and we have limited pipeline artifact storage space.
0 commit comments