title: How to run and publish .NETCore Xunit tests on VSTS (Vs2017)?
body: <p>I had two build steps in VSTS:</p>
  
  <ol>
  <li>To run tests (VSTS cmd task):  DOTNET test -xml TEST-results.xml</li>
  <li>To publish test results step (VSTS test publish task): format=XUnit and the file name from previous step</li>
  </ol>
  
  <p>But after I upgraded to VS2017 the -XML tag is not working anymore. I changed step one to use this:
  test --logger "trx;LogFileName=TEST-results.xml"</p>
  
  <p>but the second step throws an error "<em>Invalid results file. Please make sure the Test Result Format field in the task matches the result format of the file</em>"</p>
  
  <p>Is there another way to run .NetCore tests on VSTS? or am I doing something wrong?</p>
  
  <p>Thanks,</p>