无法加载 <mytest>因为它不在 Appbase 下 [英] Unable to load <mytest> because it is not located under Appbase

查看:50
本文介绍了无法加载 <mytest>因为它不在 Appbase 下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 NUnit 项目 (NunitLoginTest.nunit)nunit\bin 目录,现在我正在尝试加载该项目,但它给了我以下错误.

I have created an NUnit project (NunitLoginTest.nunit) by selcting my test project in the nunit\bin directory and now I am trying to load that project, but it is giving me the following error.

无法加载 因为它不在 Appbase 下,无法加载文件或程序集nunitLogintest"或其依赖项之一.系统找不到指定路径

Unable to load Because it is not located under Appbase, could not load file or assembly "nunitLogintest" or one of its dependencies. The system cannot find the specified path

和什么有关?我还检查了我的配置文件.我正在从控制台运行它.

What is it related to? I have also checked my configuration file. I am running this from console.

我想启动 NUnit,然后它应该加载我在某个目录中的 Visual Studio 项目,然后运行所有测试(如果我没有在任何 NUnit 项目中定义它).

I want to start NUnit, and then it should load my Visual Studio project that is in some directory and then run all the tests (if I don't define it in any NUnit project).

实际上我想创建一个批处理文件来运行所有这些.当我这样做时,它不会加载项目.我已经在环境变量中定义了 c:\Program Files\nunit\bin 路径.

Actually I want to create a batch file to run all this. When I do this it won't load the project. I have defined the c:\Program Files\nunit\bin path in the environment variable.

推荐答案

有些情况下ApplicationBase需要自己填写.主菜单,Project,Edit,填入ApplicationBase所在的DLL文件.

You must fill in the ApplicationBase by yourself in some cases. Main menu, Project, Edit, fill ApplicationBase where the DLL file is.

这篇关于无法加载 <mytest>因为它不在 Appbase 下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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