错误CS0246:找不到类型或名称空间名称“ NUnitLite”(您是否缺少using指令或程序集引用?)

时间:2019-05-10 06:48:19

标签: c# nunit

我编写了这段代码来启动我的硒测试脚本(.cs文件)

using NUnitLite;
namespace myProject
{

    public class Runner
    {
        public static int Main(string[] args)
        {
                return new AutoRun().Execute(args);
        }
    }
}

当我尝试使用命令行运行它时,它会抛出

error CS0246: The type or namespace name 'NUnitLite' could not be found (are you missing a using
        directive or an assembly reference?)

我尝试添加NUnitLite.dll进行引用,但它不允许我说This component is already automatically referenced by the build system.

0 个答案:

没有答案