未定义值或构造函数“DotCoverNUnit”

时间:2014-09-25 17:04:21

标签: f# f#-fake

我们正在使用Fake,我想在Build目标之后运行DotCover。它总是告诉我:

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

我简短的“测试”脚本

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

DotCoverNUnit dotCoverOptions nUnitOptions

出了什么问题?

1 个答案:

答案 0 :(得分:1)

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

 open Fake.DotCover
相关问题