Xunit.runner.visualstudio does not work for Visual Studio

I did the nuget installation as follows:

Install-Package xunit.runner.visualstudio -Version 2.2.0

In my test project.

I have a test similar to this:

public class When_Doing_Stuff_I_Want_To_Test
{

    [Fact]
    public void Can_Do_Stuff()
    {
        var result = DoStuff();

        result.ShouldNotBeNull();
        result.Success.ShouldBeTrue();
    }
}

Despite the fact that I did many VS reboots, a laptop reboot remaining between them, VS 2017 still cannot detect my tests: enter image description here

What can I do to fix this and see my tests?

Adding

I work under 4.6.1, so not Core yet.

Questions on the same topic that did not help:

So a lot of spinning, none of this helped ...

Update

I can not get NUnit to work, nor will it appear in the test explorer.

Update 2

:

enter image description here

, .

+6
1

, NETStandard.Library ...

, :

, , , , NETStandard.Library Microsoft.NETCore.App. .

.csproj ( ):

<PropertyGroup>    
  <TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
  <PackageReference Include="xunit" Version="2.2.0" />
  <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
</ItemGroup>

:

<PropertyGroup>
  <TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>

dotnet , , . .NET Core SDK 1.0.1 1.0.4 ( x86).

+7

All Articles