The value or constructor 'DotCoverNUnit' is not defined

我只是一个虾纸丫 提交于 2020-01-06 16:20:46

问题


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

What went wrong?


回答1:


You need to open namespace containing DotCoverNUnit class:

 open Fake.DotCover


来源:https://stackoverflow.com/questions/26044214/the-value-or-constructor-dotcovernunit-is-not-defined

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!