单元测试,无法加载dll

编程入门 行业动态 更新时间:2024-10-23 21:26:17
本文介绍了单元测试,无法加载dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个单元测试项目和一个引用dll B的项目A.当对dll B进行更改并再次构建解决方案时,我得到一个错误消息:无法加载dll B或它的依赖项之一.尝试运行测试项目. dll B不 存在于测试项目的引用中.

I have a unit test project and a project A that refers to the dll B. When make changes to the dll B and build my solution again I get an error meassage: could not load dll B or one of it's dependencies when i try to run the test project. The dll B does not exists in the references of the test project.

谢谢

Jaana

推荐答案

使用配置管理器

内部版本=>配置管理器

Build => configuration manager

要在单击F5时告诉我什么是构建,请构建或运行.

To tell what is build when you click F5, build or run.

要添加引用用途(我假设您使用的是Visual Basic的较新版本,因为您并未对此进行任何编写)

To add a reference use (I assume you use a newer Visual Basic version because you did write nothing about that)

项目->添加参考->根据您的情况进行编程

Project -> Add Reference -> Program in your case

更多推荐

单元测试,无法加载dll

本文发布于:2023-11-08 14:12:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569594.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元测试   加载   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!