答案 0 :(得分:2)
请参阅以下步骤以启用.NET Core XUnit测试的代码覆盖率:
例如:
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<IsPackable>false</IsPackable>
<DebugType>Full</DebugType>
</PropertyGroup>
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform
/framework:".NETCoreApp,Version=v2.0"
醇>