'Azure devops build pipeline faild error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly SonarQube.Integration.Tasks.dll

I am running a build pipeline with sonat tasks but when it arrives to the build task it fails and i got the following error :

enter image description here

Here 'is my azure pipeline file:

trigger: - develop

steps:
    
    - task: DotNetCoreCLI@2
      inputs:
        command: 'restore'

    - task: SonarQubeScannerMsBuildBegin@3
      displayName: 'Prepare the SonarQube analysis'
      inputs:
        projectKey: derogplus:develop
    
        projectName: derogplus
    
        connectedServiceName: Sonar-Qube

    - task: DotNetCoreCLI@2
      displayName: Build
      inputs:
        command: build
        projects: '$(solution)'
        arguments: '--configuration $(buildConfiguration)'

    - task: VSTest@1
      displayName: 'Unit Tests'
      inputs:
       testAssembly: '**\*TEST.dll;-:**\obj\**'

       runInParallel: False

       vsTestVersion: latest

    - task: SonarQubeScannerCli@3
      displayName: 'Perform a SonarQube analysis'
      inputs:
        connectedServiceName: Sonar-Qube
    
        projectKey: derogplus:develop
    
        projectName: derogplus

    - task: SonarQubeScannerMsBuildEnd@3
      displayName: 'Complete the SonarQube analysis'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source