Skip to content

Commit d466037

Browse files
Fix CI build (#3848)
2 parents 52b6a84 + d5a708f commit d466037

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.vsts-ci/templates/ci-general.yml

+17
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,30 @@ steps:
4141
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
4242
destinationFolder: $(Build.SourcesDirectory)/vscode-powershell/modules
4343

44+
- task: UseDotNet@2
45+
condition: not(${{ parameters.usePipelineArtifact }})
46+
displayName: Install .NET 6.0.x SDK
47+
inputs:
48+
packageType: sdk
49+
version: 6.0.x
50+
performMultiLevelLookup: true
51+
52+
- task: UseDotNet@2
53+
condition: not(${{ parameters.usePipelineArtifact }})
54+
displayName: Install .NET 3.1.x runtime
55+
inputs:
56+
packageType: runtime
57+
version: 3.1.x
58+
performMultiLevelLookup: true
59+
4460
- task: PowerShell@2
4561
displayName: Build and test
4662
inputs:
4763
targetType: inline
4864
script: |
4965
Get-Module -ListAvailable Pester
5066
Install-Module InvokeBuild -Scope CurrentUser -Force
67+
Install-Module platyPS -Scope CurrentUser -Force
5168
Invoke-Build -Configuration Release
5269
Write-Host "##vso[task.setvariable variable=vsixPath]$(Resolve-Path powershell-*.vsix)"
5370
workingDirectory: $(Build.SourcesDirectory)/vscode-powershell

0 commit comments

Comments
 (0)