【发布时间】:2018-08-15 09:07:31
【问题描述】:
我正在尝试使用命令将包添加到 dotnet:
dotnet add package JetBrains.dotCover.CommandLineTools --version 2018.2.0-eap07
但是,我收到一个错误:
The project does not support adding package references through the add package command.
我该怎么做?我无法通过 NuGet 安装包,因为我的 dotnet 命令行不会检测到 dotcover。我看到了一些通过 .csproj 为 dotnet.core 应用程序添加包的示例:
<DotNetCliToolReference Include="JetBrains.dotCover.CommandLineTools" Version="2018.2.0-eap03" />
然后运行 dotnet restore。但我不知道如何为 WPF 应用程序做到这一点。我的最终目标是为 WPF 应用程序使用以下命令来生成测试覆盖率:
dotnet dotcover test
【问题讨论】:
-
dotnet 是否已经支持 WPF?
-
对于“dotnet test”、“dotnet build”等基本命令,它工作正常
标签: c# .net wpf testing code-coverage