【发布时间】:2020-06-04 10:08:03
【问题描述】:
我想在 Resharper DotCover 上运行测试,但我的一个测试项目 dosnet 运行 resharper 测试,但正常的测试资源管理器工作正常。
警告测试运行将使用为框架构建的 DLL .NETCoreApp,Version=v1.0 和平台 X86。以下 DLL(s) 不 匹配框架/平台设置。 HR.EmployeeContext.Domain.Test.dll 为 Framework .NETCoreApp,Version=v3.1 和 Platform X86 构建。走 到http://go.microsoft.com/fwlink/?LinkID=236877&clcid=0x409了解更多 有关管理这些设置的详细信息。
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
【问题讨论】:
标签: c# unit-testing testing resharper dotcover