From 1f417a10172718aadf5c5595bb3ae21a82dbd07b Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 22 Feb 2022 09:43:50 -0800 Subject: [PATCH 1/2] Fix CI build Now that platyPS requirement is actually checked. --- .vsts-ci/templates/ci-general.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.vsts-ci/templates/ci-general.yml b/.vsts-ci/templates/ci-general.yml index d846a044fc..2997b02146 100644 --- a/.vsts-ci/templates/ci-general.yml +++ b/.vsts-ci/templates/ci-general.yml @@ -48,6 +48,7 @@ steps: script: | Get-Module -ListAvailable Pester Install-Module InvokeBuild -Scope CurrentUser -Force + Install-Module platyPS -Scope CurrentUser -Force Invoke-Build -Configuration Release Write-Host "##vso[task.setvariable variable=vsixPath]$(Resolve-Path powershell-*.vsix)" workingDirectory: $(Build.SourcesDirectory)/vscode-powershell From d5a708ff88f57aed1d626a87642b4de3e410c350 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 22 Feb 2022 10:58:01 -0800 Subject: [PATCH 2/2] Install updated `dotnet` if buiding editor services --- .vsts-ci/templates/ci-general.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.vsts-ci/templates/ci-general.yml b/.vsts-ci/templates/ci-general.yml index 2997b02146..d4a042048c 100644 --- a/.vsts-ci/templates/ci-general.yml +++ b/.vsts-ci/templates/ci-general.yml @@ -41,6 +41,22 @@ steps: archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip destinationFolder: $(Build.SourcesDirectory)/vscode-powershell/modules +- task: UseDotNet@2 + condition: not(${{ parameters.usePipelineArtifact }}) + displayName: Install .NET 6.0.x SDK + inputs: + packageType: sdk + version: 6.0.x + performMultiLevelLookup: true + +- task: UseDotNet@2 + condition: not(${{ parameters.usePipelineArtifact }}) + displayName: Install .NET 3.1.x runtime + inputs: + packageType: runtime + version: 3.1.x + performMultiLevelLookup: true + - task: PowerShell@2 displayName: Build and test inputs: