I just created the netstandard library in Visual Studio 2017 and added links to xunitand xunit.runner.visualstudio, but Test Test Test and Resaarper 2017 EAP 3 do not recognize any tests. I saw: Unit testing the .NET Standard 1.6 library , but project.json was gone, and csproj was back in place.
What do I need to do to be able to run unit tests included in the netstandard library?
Library.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
</ItemGroup>
</Project>
Test.cs
namespace ClassLibrary2
{
public class Class1
{
[Fact]
public void RescharperShouldRunTest()
{
Assert.True(true);
}
}
}

Edit
Thanks to the answers, I made some progress.
Adding
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
. TargetFramework netcoreapp1.1, VS . netstandard1.6 Test Explorer . netcore. .NET.