值或构造函数'DotCoverNUnit'未定义 [英] The value or constructor 'DotCoverNUnit' is not defined

查看:72
本文介绍了值或构造函数'DotCoverNUnit'未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Fake,我想在构建目标之后运行DotCover.总是告诉我:

We're using Fake and I'd like to run DotCover after our Build target. It's alway telling me:

C:\Users\xxxxx\Dev>FAKE\tools\Fake build.fsx

F# Interactive for F# 3.1 (private)
Freely distributed under the Apache 2.0 Open Source License

For help type #help;;

> [Loading C:\Users\xxxxx\Dev\build.fsx]



build.fsx(8,1): error FS0039: The value or constructor 'DotCoverNUnit' is not defined

我简短的简单测试"脚本

My short simple "test" script

#r @"FAKE/tools/FakeLib.dll"
open Fake

DotCoverNUnit dotCoverOptions nUnitOptions

出了什么问题?

推荐答案

您需要打开包含DotCoverNUnit类的名称空间:

You need to open namespace containing DotCoverNUnit class:

 open Fake.DotCover

这篇关于值或构造函数'DotCoverNUnit'未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆