Search code examples
azure-devopsmstestvstest

VSTS "Visual Studio Test" task can't find tests of .Net Core dlls


My VSTS - "Visual Studio Test" task can't find any tests of the .NET Core assembly. But in VS 2017 and in the console, it works well.

VSTS Task's logs:

enter image description here

enter image description here

enter image description here

My run settings file:

enter image description here


Solution

  • Refer to these additional settings of Visual Studio Test task:

    1. Path to vstest.console.exe: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform
    2. Other console options: /framework:".NETCoreApp,Version=v2.0"