Skip to content

ADO extension: Could not find file  #623

@daniel1941

Description

@daniel1941

Could not find file

Task: Azure DevOps (ADO) Security Scanner

Using the task in the Azure Pipelines Pool - windows-latest image is displaying an error.

Steps to reproduce

Add the Azure DevOps (ADO) Security Scanner task to a pipeline:

pool:
  vmImage: windows-latest

steps:
  - task: ADOSecurityScanner@1
    inputs:
      ADOConnectionName: 'foobar'
      OrgName: '$(System.CollectionUri)'
      ProjectNames: '$(System.TeamProject)'
      ScanFilter: 'Org_Project_User'

Expected behavior

No error messages.

Actual behavior

Add-Type : Could not find file
'D:\a_tasks\ADOSecurityScanner_0f42e73b-1b51-41b9-8bd2-c1a864393316\1.5.7\ps_modules\VstsTaskSdk\VstsTaskSdk.dll'.
At
D:\a_tasks\ADOSecurityScanner_0f42e73b-1b51-41b9-8bd2-c1a864393316\1.5.7\ps_modules\VstsTaskSdk\VstsTaskSdk.psm1:20
char:1

  • Add-Type -LiteralPath $PSScriptRoot\VstsTaskSdk.dll
  •   + CategoryInfo          : NotSpecified: (:) [Add-Type], FileNotFoundException
      + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddTypeCommand</br>
    
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions