title: SonarQube Run Code Analysis Azure DevOps task fails due not able to locate xunit.runner.visualstudio.dotnetcore.testadapter.dll
body: <p><strong>which versions are you using?</strong> (SonarQube, Scanner, Plugin, and any relevant extension)</p>
  <p>Task version 4 - Azure DevOps Services</p>
  <p><strong>what are you trying to achieve?</strong></p>
  <p>Run Code Analysis</p>
  <p><strong>what have you tried so far to achieve this?</strong></p>
  <ol>
  <li>Stop and Start the agent services</li>
  <li>Delete the folder _work and trigger a new run</li>
  <li>Install a new agent</li>
  <li>Run the agent with the local account</li>
  <li>Use a different version of dotnet task</li>
  <li>Add and Sleep task for 20 sec to avoid other resources using the
  same file</li>
  <li>Using the SonarQube Run Code Analysis Pluging instead the CMD call
  execution</li>
  <li>Using the SonarQube <em>Run Code Analysis</em> Pluging instead the <em>CMD</em>
  call execution in ver *5</li>
  <li>Fixed JAVA_HOME and JRE_HOME</li>
  <li>Updating VS2019</li>
  </ol>
  <p>*<strong>Error Log:</strong></p>
  <p>17:56:22.652 17:56:22.652 WARNING: File ‘C:\windows\system32\config\systemprofile.nuget\packages\microsoft.net.test.sdk\16.6.1\build\netcoreapp2.1\Microsoft.NET.Test.Sdk.Program.cs’ is not located under the root directory ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  17:56:22.652 17:56:22.652 WARNING: File ‘C:\windows\system32\config\systemprofile.nuget\packages\microsoft.testplatform.testhost\16.6.1\build\netcoreapp2.1\x64\testhost.exe’ is not located under the root directory ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  17:56:22.653 17:56:22.653 WARNING: File ‘C:\windows\system32\config\systemprofile.nuget\packages\microsoft.testplatform.testhost\16.6.1\build\netcoreapp2.1\x64\testhost.dll’ is not located under the root directory ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  17:56:22.653 17:56:22.653 WARNING: File</p>
  <p><em><strong>I have check and this file is present on above path</strong></em>
  ‘C:\windows\system32\config\systemprofile.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.visualstudio.dotnetcore.testadapter.dll’ is not located under the root directory</p>
  <p><em><strong>I have check and this file is present on above path</strong></em>
  ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  17:56:22.653 17:56:22.653 WARNING: File ‘C:\windows\system32\config\systemprofile.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.reporters.netcoreapp10.dll’ is not located under the root directory ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  17:56:22.653 17:56:22.653 WARNING: File ‘C:\windows\system32\config\systemprofile.nuget\packages\xunit.runner.visualstudio\2.4.1\build\netcoreapp1.0\xunit.runner.utility.netcoreapp10.dll’ is not located under the root directory ‘F:\AzureServicesAgents\AgentU07_work\1\s’ and will not be analyzed.
  Calling the TFS Processor executable…</p>