我编写了这段代码来启动我的硒测试脚本(.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.